File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,9 @@ jobs:
129129 wget -q -O - "https://github.com/sigstore/cosign/releases/download/${COSIGN_VERSION}/cosign_checksums.txt" | grep -w cosign-linux-amd64 | sha256sum -c
130130 install cosign-linux-amd64 /usr/local/bin/cosign
131131 rm cosign-linux-amd64
132+ - run :
133+ name : Get Cosign Key
134+ command : echo $COSIGN_KEY | base64 -d > cosign.key
132135 - run :
133136 name : Attach attestations to image
134137 command : |
@@ -137,7 +140,7 @@ jobs:
137140 do
138141 IMAGE="sylabsio/scs-build:${TAG}-${ARCH}"
139142 syft scan -q -o cyclonedx-json=sbom.cdx.json "${IMAGE}"
140- AWS_REGION=us-east-1 cosign attest --predicate sbom.cdx.json --type cyclonedx --key "awskms:///${COSIGN_KEY_ID}" "${IMAGE}"
143+ cosign attest --predicate sbom.cdx.json --type cyclonedx --key ./cosign.key "${IMAGE}"
141144 done
142145
143146workflows :
@@ -170,4 +173,3 @@ workflows:
170173 - dockerhub-release
171174 - github-release
172175 - cosign-release
173- - scs-production
You can’t perform that action at this time.
0 commit comments