Skip to content

Commit c2a7634

Browse files
committed
change SBOM to attest
1 parent 63b04cb commit c2a7634

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ jobs:
114114
syft docker.io/fontebasso/php-nginx@${{ needs.merge-multiarch.outputs.digest }} \
115115
-o spdx-json > sbom.spdx.json
116116
117-
- name: Attach SBOM to image
117+
- name: Attest SBOM
118118
run: |
119-
cosign attach sbom \
120-
--sbom sbom.spdx.json \
119+
cosign attest \
120+
--yes \
121+
--type spdx \
122+
--predicate sbom.spdx.json \
121123
docker.io/fontebasso/php-nginx@${{ needs.merge-multiarch.outputs.digest }}
122124
123125
- name: Upload SBOM artifact
@@ -135,7 +137,7 @@ jobs:
135137
docker.io/fontebasso/php-nginx@${{ needs.merge-multiarch.outputs.digest }}
136138
137139
generate-provenance:
138-
name: Generate SLSA Provenance v1.1
140+
name: Generate SLSA Provenance
139141
needs: merge-multiarch
140142
if: startsWith(github.ref, 'refs/tags/')
141143
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]

0 commit comments

Comments
 (0)