Skip to content

Commit

Permalink
add sbom workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkuba committed Mar 2, 2024
1 parent 3920b15 commit 4f5c998
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: SBOM
on:
release:
types: [published]

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 --workspaces --sbom-type=library > sbom.spdx
- uses: actions/upload-artifact@v3.1.0
with:
path: ./sbom.spdx
name: "SBOM"

0 comments on commit 4f5c998

Please sign in to comment.