mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
Merge pull request #3269 from deckhouse/add-cosign
Sign container images
This commit is contained in:
@@ -62,6 +62,11 @@ jobs:
|
||||
- name: Set up Syft
|
||||
uses: anchore/sbom-action/download-syft@24b0d5238516480139aa8bc6f92eeb7b54a9eb0a # v0.15.5
|
||||
|
||||
- name: Install cosign
|
||||
uses: sigstore/cosign-installer@1fc5bd396d372bee37d608f955b336615edf79c8 # v3.2.0
|
||||
with:
|
||||
cosign-release: 'v2.2.1'
|
||||
|
||||
- name: Set image name
|
||||
id: image-name
|
||||
run: echo "value=ghcr.io/${{ github.repository }}" >> "$GITHUB_OUTPUT"
|
||||
@@ -130,6 +135,11 @@ jobs:
|
||||
outputs: ${{ steps.build-output.outputs.value }}
|
||||
# push: ${{ inputs.publish }}
|
||||
|
||||
- name: Sign the images with GitHub OIDC Token
|
||||
run: |
|
||||
cosign sign --yes ${{ steps.image-name.outputs.value }}@${{ steps.build.outputs.digest }}
|
||||
if: inputs.publish
|
||||
|
||||
- name: Set image ref
|
||||
id: image-ref
|
||||
run: echo "value=${{ steps.image-name.outputs.value }}@${{ steps.build.outputs.digest }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
Reference in New Issue
Block a user