Skip to content

Commit ede2076

Browse files
Rework Workflow
1 parent ccdd041 commit ede2076

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/attestations.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@ jobs:
1818
uses: actions/checkout@v4
1919
- name: "Install dependencies"
2020
run: npm install
21-
- uses: anchore/sbom-action@v0
21+
- name: "Generate SBOM"
22+
uses: anchore/sbom-action@v0
2223
with:
2324
format: 'spdx-json'
2425
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'
2926
- name: "Build site"
3027
run: npm run build
3128
- name: "Package the build"
@@ -34,7 +31,11 @@ jobs:
3431
uses: actions/attest-build-provenance@v1
3532
with:
3633
subject-path: "dist.tar.gz"
37-
- name: "Publish the build"
34+
- uses: actions/attest-sbom@v1
35+
with:
36+
subject-path: 'dist.tar.gz'
37+
sbom-path: 'sbom.spdx.json'
38+
- name: "Publish the SBOM"
3839
uses: actions/upload-artifact@v4
3940
with:
4041
name: sbom

0 commit comments

Comments
 (0)