File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed
Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 88 - cron : " 0 0 * * 0"
99 workflow_dispatch :
1010
11- permissions : {}
11+ permissions :
12+ # Required by sigstore
13+ id-token : write
1214
1315jobs :
1416 build :
4850 sbom : true
4951 tags : ${{ steps.meta.outputs.tags }}
5052 labels : ${{ steps.meta.outputs.labels }}
53+ - name : Install cosign
54+ uses : sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
55+ - name : Sign the Docker image
56+ working-directory : ${{ env.IMAGE }}
57+ env :
58+ DIGEST : ${{ steps.build.outputs.digest }}
59+ TAGS : ${{ steps.meta.outputs.tags }}
60+ shell : bash
61+ run : |
62+ images=""
63+ for tag in ${TAGS}; do
64+ images+="${tag}@${DIGEST} "
65+ done
66+ # shellcheck disable=SC2086
67+ cosign sign --recursive --yes ${images}
Original file line number Diff line number Diff line change 55 release :
66 types : [published]
77
8- permissions : {}
8+ permissions :
9+ # Required by sigstore
10+ id-token : write
911
1012jobs :
1113 release :
4345 sbom : true
4446 tags : ${{ steps.meta.outputs.tags }}
4547 labels : ${{ steps.meta.outputs.labels }}
48+ - name : Install cosign
49+ uses : sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
50+ - name : Sign the Docker image
51+ working-directory : ${{ env.IMAGE }}
52+ env :
53+ DIGEST : ${{ steps.build.outputs.digest }}
54+ TAGS : ${{ steps.meta.outputs.tags }}
55+ shell : bash
56+ run : |
57+ images=""
58+ for tag in ${TAGS}; do
59+ images+="${tag}@${DIGEST} "
60+ done
61+ # shellcheck disable=SC2086
62+ cosign sign --recursive --yes ${images}
You can’t perform that action at this time.
0 commit comments