Browse Source

Remove cosign verify commands

pull/420/head
Vince Grassia 2 months ago
parent
commit
e73a8866ca
No known key found for this signature in database
GPG Key ID: 9AD7505E8448CC08
  1. 15
      .github/workflows/build-unified.yml
  2. 24
      .github/workflows/release.yml

15
.github/workflows/build-unified.yml

@ -203,11 +203,10 @@ jobs: @@ -203,11 +203,10 @@ jobs:
- name: Install Cosign
if: env.is_publish_branch == 'true'
uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
- name: Sign image with Cosign
if: env.is_publish_branch == 'true'
id: sign
env:
DIGEST: ${{ steps.build-docker.outputs.digest }}
TAGS: ${{ steps.tag-list.outputs.tags }}
@ -218,18 +217,6 @@ jobs: @@ -218,18 +217,6 @@ jobs:
images+=("${tag}@${DIGEST}")
done
cosign sign --yes "${images[@]}"
echo "images=${images[*]}" >> "$GITHUB_OUTPUT"
- name: Verify the signed image(s) with Cosign
if: env.is_publish_branch == 'true'
env:
IMAGES: ${{ steps.sign.outputs.images }}
run: |
read -r -a images_array <<< "${COSIGN_IMAGES}"
cosign verify \
--certificate-identity "${GITHUB_SERVER_URL}/${GITHUB_WORKFLOW_REF}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
"${images_array[@]}"
- name: Scan Docker image
id: container-scan

24
.github/workflows/release.yml

@ -299,18 +299,6 @@ jobs: @@ -299,18 +299,6 @@ jobs:
cosign sign --yes "ghcr.io/bitwarden/$_PROJECT_NAME:$_RELEASE_TAG"
cosign sign --yes "ghcr.io/bitwarden/$_PROJECT_NAME:latest"
- name: Verify the signed image with Cosign
run: |
cosign verify \
--certificate-identity "${GITHUB_SERVER_URL}/${GITHUB_WORKFLOW_REF}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
"ghcr.io/bitwarden/$_PROJECT_NAME:$_RELEASE_TAG"
cosign verify \
--certificate-identity "${GITHUB_SERVER_URL}/${GITHUB_WORKFLOW_REF}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
"ghcr.io/bitwarden/$_PROJECT_NAME:latest"
- name: Log out of Docker
run: |
docker logout ghcr.io
@ -363,18 +351,6 @@ jobs: @@ -363,18 +351,6 @@ jobs:
cosign sign --yes "ghcr.io/bitwarden/self-host:$_RELEASE_VERSION"
cosign sign --yes "ghcr.io/bitwarden/self-host:latest"
- name: Verify the signed image with Cosign
run: |
cosign verify \
--certificate-identity "${GITHUB_SERVER_URL}/${GITHUB_WORKFLOW_REF}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
"ghcr.io/bitwarden/self-host:$_RELEASE_VERSION"
cosign verify \
--certificate-identity "${GITHUB_SERVER_URL}/${GITHUB_WORKFLOW_REF}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
"ghcr.io/bitwarden/self-host:latest"
- name: Log out of skopeo and ghcr.io
run: |
skopeo logout --all

Loading…
Cancel
Save