Skip to content

Commit 561b161

Browse files
committed
ci: added SBOM generation
1 parent b603c76 commit 561b161

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,37 @@ jobs:
5454
sbom: true
5555
provenance: true
5656
push: true
57+
58+
- name: Generate SBOM for php
59+
uses: anchore/sbom-action@v0
60+
with:
61+
image: ${{ fromJSON(steps.meta-php.outputs.json).tags[0] }}
62+
output-file: php-sbom.spdx.json
63+
dependency-snapshot: true
64+
- name: Scan php
65+
uses: anchore/scan-action@v6
66+
id: php-scan
67+
with:
68+
sbom: php-sbom.spdx.json
69+
fail-build: false
70+
- name: Upload report to GitHub
71+
uses: github/codeql-action/upload-sarif@v3
72+
with:
73+
sarif_file: ${{ steps.php-scan.outputs.sarif }}
74+
75+
- name: Generate SBOM for nginx
76+
uses: anchore/sbom-action@v0
77+
with:
78+
image: ${{ fromJSON(steps.meta-nginx.outputs.json).tags[0] }}
79+
output-file: nginx-sbom.spdx.json
80+
dependency-snapshot: true
81+
- name: Scan nginx
82+
uses: anchore/scan-action@v6
83+
id: nginx-scan
84+
with:
85+
sbom: nginx-sbom.spdx.json
86+
fail-build: false
87+
- name: Upload report to GitHub
88+
uses: github/codeql-action/upload-sarif@v3
89+
with:
90+
sarif_file: ${{ steps.nginx-scan.outputs.sarif }}

0 commit comments

Comments
 (0)