Skip to content

Commit

Permalink
Create sbom.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sri-hari authored Sep 19, 2024
1 parent 7951c62 commit c7caf4e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Generate SBOM

on:
push:
branches:
- main
pull_request:

jobs:
generate-sbom:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh
- name: Generate SBOM
run: |
./bin/syft . -o spdx-json > sbom.json
- name: Upload SBOM artifact
uses: actions/upload-artifact@v3
with:
name: sbom
path: sbom.json

0 comments on commit c7caf4e

Please sign in to comment.