1
0
mirror of https://github.com/gusaul/grpcox.git synced 2024-12-26 02:40:10 +00:00

Skip signing of container image

Since it fails with "invalid key".
This commit is contained in:
lilac 2024-04-10 15:42:58 +08:00 committed by GitHub
parent 4813137384
commit 64649f497f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,12 +88,12 @@ jobs:
# repository is public to avoid leaking data. If you would like to publish # repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below. # transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign # https://github.com/sigstore/cosign
- name: Sign the published Docker image # - name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }} # if: ${{ github.event_name != 'pull_request' }}
env: # env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable # # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
TAGS: ${{ steps.meta.outputs.tags }} # TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }} # DIGEST: ${{ steps.build-and-push.outputs.digest }}
# This step uses the identity token to provision an ephemeral certificate # # This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance. # # against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} # run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}