File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,9 @@ jobs:
129
129
wget -q -O - "https://github.com/sigstore/cosign/releases/download/${COSIGN_VERSION}/cosign_checksums.txt" | grep -w cosign-linux-amd64 | sha256sum -c
130
130
install cosign-linux-amd64 /usr/local/bin/cosign
131
131
rm cosign-linux-amd64
132
+ - run :
133
+ name : Get Cosign Key
134
+ command : echo $COSIGN_KEY | base64 -d > cosign.key
132
135
- run :
133
136
name : Attach attestations to image
134
137
command : |
@@ -137,7 +140,7 @@ jobs:
137
140
do
138
141
IMAGE="sylabsio/scs-build:${TAG}-${ARCH}"
139
142
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}"
141
144
done
142
145
143
146
workflows :
@@ -170,4 +173,3 @@ workflows:
170
173
- dockerhub-release
171
174
- github-release
172
175
- cosign-release
173
- - scs-production
You can’t perform that action at this time.
0 commit comments