Skip to content

Commit

Permalink
add workflow to generate sbom file
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkuba committed Feb 13, 2024
1 parent 44b0b29 commit 49624af
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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

- uses: advanced-security/[email protected]
id: sbom
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/[email protected]
with:
path: ${{steps.sbom.outputs.fileName }}
name: "SBOM"

0 comments on commit 49624af

Please sign in to comment.