Skip to content

SBOM

SBOM #11

Workflow file for this run

name: SBOM
on:
release:
types: [published]
workflow_dispatch:
permissions: read-all
jobs:
sbom:
runs-on: ubuntu-latest
env:
NPM_CONFIG_UNSAFE_PERM: true
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm install -g npm@latest
- name: Bootstrap
run: npm ci
- name: Generate SBOM
run: |
npm sbom --sbom-format=spdx --legacy-peer-deps > sbom.spdx
- uses: actions/upload-artifact@v3.1.0
with:
path: ./sbom.spdx
name: "SBOM"