Skip to content

Commit aca5533

Browse files
committed
Update cosign
Signed-off-by: Aaron Lew <[email protected]>
1 parent 3bd2dd8 commit aca5533

File tree

4 files changed

+1944
-425
lines changed

4 files changed

+1944
-425
lines changed

.github/workflows/reusable-prober.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ jobs:
143143
GITHUB_RUN_ID: ${{ github.run_id }}
144144
GITHUB_RUN_ATTEMPT: ${{ github.run_attempt }}
145145
IMAGE: localhost:1338/image:${{ github.sha }}-${{ github.run_id }}
146-
REKOR_SERVER: ${{ inputs.rekor_v1_url }}
147146
IDENTITY_REGEX: ${{ github.server_url }}/${{ github.repository }}/.github/workflows/reusable-prober.yml@refs/.*
148147
runs-on: ubuntu-latest
149148
outputs:
@@ -167,14 +166,16 @@ jobs:
167166
run: |
168167
echo "skip_pagerduty=true" >> $GITHUB_OUTPUT
169168
170-
- name: Extract relevant binaries
169+
- name: Extract crane binary
171170
run: |
172171
docker pull ghcr.io/sigstore/sigstore-probers:latest
173172
# the last argument in the next command is not used, it is required because the container doesn't have a default command
174173
docker create --name binaries ghcr.io/sigstore/sigstore-probers /usr/local/bin/crane
175-
docker cp binaries:/usr/local/bin/cosign /usr/local/bin/
176174
docker cp binaries:/usr/local/bin/crane /usr/local/bin/
177175
176+
- name: Install cosign
177+
uses: sigstore/[email protected]
178+
178179
# Setup the registry on port 1338
179180
- run: |
180181
PORT=1338 crane registry serve &
@@ -220,8 +221,11 @@ jobs:
220221
- name: Sign and verify the image with preprod TUF
221222
if: ${{ inputs.enable_staging == false }}
222223
run: |
224+
cosign version
223225
cosign sign --yes ${IMAGE} --use-signing-config --oidc-provider github-actions --new-bundle-format
224-
cosign verify ${IMAGE} --rekor-url ${{ inputs.rekor_v1_url }} --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity-regexp="$IDENTITY_REGEX"
226+
echo "COSIGN SIGN CALL COMPLETED SUCCESSFULLY"
227+
cosign verify ${IMAGE} --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity-regexp="$IDENTITY_REGEX" --new-bundle-format
228+
echo "COSIGN VERIFY CALL COMPLETED SUCCESSFULLY"
225229
226230
- name: Remove preprod TUF
227231
run: |
@@ -243,11 +247,11 @@ jobs:
243247
- name: Sign and verify the image
244248
run: |
245249
cosign sign --yes ${IMAGE} --use-signing-config --oidc-provider github-actions --new-bundle-format
246-
cosign verify ${IMAGE} --rekor-url ${{ inputs.rekor_v1_url }} --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity-regexp="$IDENTITY_REGEX"
250+
cosign verify ${IMAGE} --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity-regexp="$IDENTITY_REGEX" --new-bundle-format
247251
- name: Generate and upload attestation
248252
run: |
249-
cosign attest --predicate ./prober/attestation.json --type slsaprovenance --use-signing-config ${IMAGE}
250-
cosign verify-attestation --rekor-url ${{ inputs.rekor_v1_url }} --type=slsaprovenance ${IMAGE} --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity-regexp="$IDENTITY_REGEX"
253+
cosign attest --predicate ./prober/attestation.json --type slsaprovenance --use-signing-config ${IMAGE} --new-bundle-format
254+
cosign verify-attestation --type=slsaprovenance ${IMAGE} --certificate-oidc-issuer=https://token.actions.githubusercontent.com --certificate-identity-regexp="$IDENTITY_REGEX" --new-bundle-format
251255
- name: Read entries from all Rekor shards
252256
run: |
253257
set -e

go.work

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.23.4
1+
go 1.25.1
22

33
use (
44
./pager-duty

0 commit comments

Comments
 (0)