Skip to content

Commit a142fc0

Browse files
committed
ci: Don't hardcode the cert identity generation on attestations
This is useful for debugging from forks. Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
1 parent e3262f0 commit a142fc0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/attestation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
cosign verify-blob \
113113
--bundle ${{ inputs.component }}-attestation-${{ inputs.arch }}-provenance.intoto.jsonl.bundle.sigstore \
114114
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
115-
--certificate-identity="https://github.com/${{github.repository_owner}}/kubewarden-controller/.github/workflows/attestation.yml@${{ github.ref }}" \
115+
--certificate-identity="${{ github.server_url }}/${{ github.workflow_ref }}" \
116116
${{ inputs.component }}-attestation-${{ inputs.arch }}-provenance.intoto.jsonl
117117
118118
cosign sign-blob --yes \
@@ -121,7 +121,7 @@ jobs:
121121
cosign verify-blob \
122122
--bundle ${{ inputs.component }}-attestation-${{ inputs.arch }}-sbom.json.bundle.sigstore \
123123
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
124-
--certificate-identity="https://github.com/${{github.repository_owner}}/kubewarden-controller/.github/workflows/attestation.yml@${{ github.ref }}" \
124+
--certificate-identity="${{ github.server_url }}/${{ github.workflow_ref }}" \
125125
${{ inputs.component }}-attestation-${{ inputs.arch }}-sbom.json
126126
127127
- name: Upload SBOMs as artifacts

0 commit comments

Comments
 (0)