File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 30
30
if : github.event_name == 'push'
31
31
# Ensure test job passes before pushing image.
32
32
needs : test
33
+ permissions :
34
+ contents : read
35
+ packages : write
36
+ # This is used to complete the identity challenge
37
+ # with sigstore/fulcio when running outside of PRs.
38
+ id-token : write
39
+
33
40
steps :
34
41
-
35
42
name : Checkout
73
80
push : ${{ github.event_name != 'pull_request' }}
74
81
tags : ${{ steps.docker_meta.outputs.tags }}
75
82
labels : ${{ steps.docker_meta.outputs.labels }}
83
+
84
+ - uses : sigstore/cosign-installer@main
85
+
86
+ # This will only write to the public Rekor transparency log when the Docker
87
+ # repository is public to avoid leaking data. https://github.com/sigstore/cosign
88
+ - name : Sign the published Docker image
89
+ if : ${{ github.event_name != 'pull_request' }}
90
+ env :
91
+ COSIGN_EXPERIMENTAL : " true"
92
+ # This step uses the identity token to provision an ephemeral certificate
93
+ # against the sigstore community Fulcio instance.
94
+ run : cosign sign ${{ steps.docker_meta.outputs.tags }}@${{ steps.docker_build.outputs.digest }}
Original file line number Diff line number Diff line change 13
13
14
14
# Dependency directories (remove the comment below to include it)
15
15
# vendor/
16
+
17
+ cosign. *
You can’t perform that action at this time.
0 commit comments