Skip to content

Commit 60fa5cf

Browse files
committed
Sign the container in the repo
Signed-off-by: Justin Abrahms <[email protected]>
1 parent a76bb15 commit 60fa5cf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,21 @@ jobs:
102102
103103
- uses: anchore/sbom-action@v0
104104

105+
- name: Install cosign
106+
uses: sigstore/cosign-installer@main
107+
with:
108+
cosign-release: 'v1.13.0'
109+
110+
- name: Sign release image
111+
run: |
112+
cosign sign --key env://COSIGN_PRIVATE_KEY ghcr.io/open-feature/open-feature-operator:${{ needs.release-please.outputs.release_tag_name }}
113+
# Displays the public key to share.
114+
cosign public-key --key env://COSIGN_PRIVATE_KEY > ./cosign.pub
115+
env:
116+
COSIGN_PRIVATE_KEY: ${{secrets.COSIGN_PRIVATE_KEY}}
117+
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
118+
if: ${{ env.DRY_RUN != 'true' }}
119+
105120
- name: Release
106121
uses: softprops/action-gh-release@v1
107122
with:

0 commit comments

Comments
 (0)