@@ -36,13 +36,15 @@ jobs:
36
36
uses : actions/checkout@v2
37
37
38
38
39
- # Install the cosign tool except on PR
39
+ # Install the cosign tool (not used on PR, still installed)
40
40
# https://github.com/sigstore/cosign-installer
41
41
- name : Install cosign
42
- if : github.event_name != 'pull_request'
43
- uses : sigstore/cosign-installer@v1.4.1
42
+ uses : sigstore/cosign-installer@main
44
43
with :
45
- cosign-release : ' v1.4.1'
44
+ cosign-release : ' v2.2.3'
45
+
46
+ - name : Check cosign version
47
+ run : cosign version
46
48
47
49
48
50
# Workaround: https://github.com/docker/build-push-action/issues/461
88
90
# https://github.com/sigstore/cosign
89
91
- name : Sign the published Docker image
90
92
if : ${{ github.event_name != 'pull_request' }}
91
- env :
92
- COSIGN_EXPERIMENTAL : " true"
93
93
# This step uses the identity token to provision an ephemeral certificate
94
94
# against the sigstore community Fulcio instance.
95
- run : cosign sign ${{ steps.meta.outputs.tags }}@${{ steps.build-and-push.outputs.digest }}
95
+ run : cosign sign --yes ${TAGS}
96
+ env :
97
+ TAGS : ${{ steps.meta.outputs.tags }}
98
+ # should use @${{ steps.build-and-push.outputs.digest }}
99
+ # but that leads to "entity not found in registry"
100
+ COSIGN_EXPERIMENTAL : " true"
0 commit comments