Skip to content

Commit ccdd041

Browse files
Add SBOM package
1 parent 8921541 commit ccdd041

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/attestations.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ jobs:
1818
uses: actions/checkout@v4
1919
- name: "Install dependencies"
2020
run: npm install
21+
- uses: anchore/sbom-action@v0
22+
with:
23+
format: 'spdx-json'
24+
output-file: 'sbom.spdx.json'
25+
- uses: actions/attest-sbom@v1
26+
with:
27+
subject-path: 'bin/my-artifact.tar.gz'
28+
sbom-path: 'sbom.spdx.json'
2129
- name: "Build site"
2230
run: npm run build
2331
- name: "Package the build"
@@ -26,6 +34,17 @@ jobs:
2634
uses: actions/attest-build-provenance@v1
2735
with:
2836
subject-path: "dist.tar.gz"
37+
- name: "Publish the build"
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: sbom
41+
path: sbom.spdx.json
42+
- name: "Publish the build"
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: dist
46+
path: dist.tar.gz
47+
2948

3049
# Deploy job
3150
# deploy:

0 commit comments

Comments
 (0)