We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc51916 commit 914eceeCopy full SHA for 914ecee
1 file changed
.github/workflows/sbom-generation.yml
@@ -0,0 +1,32 @@
1
+name: Generate SBOM with Trivy
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
9
10
+ workflow_dispatch:
11
12
+jobs:
13
+ generate-sbom:
14
+ runs-on: ubuntu-latest
15
16
+ steps:
17
+ - name: Checkout code
18
+ uses: actions/checkout@v4
19
20
+ - name: Run Trivy to generate SBOM
21
+ uses: aquasecurity/trivy-action@master
22
+ with:
23
+ scan-type: 'fs'
24
+ format: 'spdx-json'
25
+ output: 'sbom-spdx.json'
26
27
+ - name: Upload SBOM as artifact
28
+ uses: actions/upload-artifact@v4
29
30
+ name: sbom-spdx
31
+ path: sbom-spdx.json
32
+ retention-days: 30
0 commit comments