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 8385cd9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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@v4
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
zip sbom.zip ./sbom.spdx
- uses: actions/upload-artifact@v4
with:
path: ./sbom.zip
name: "SBOM"

0 comments on commit 8385cd9

Please sign in to comment.