Browse Source

BRE-648 - Fix syntax and formatting (#352)

pull/354/head v2025.2.1
Vince Grassia 10 months ago committed by GitHub
parent
commit
962b8d0a65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/workflows/build-unified.yml
  2. 22
      .github/workflows/release.yml

2
.github/workflows/build-unified.yml

@ -165,7 +165,7 @@ jobs:
- name: Verify the signed image(s) with Cosign - name: Verify the signed image(s) with Cosign
if: env.is_publish_branch == 'true' if: env.is_publish_branch == 'true'
run: | run: |
cosign verify cosign verify \
--certificate-identity "${{ github.server_url }}/${{ github.workflow_ref }}" \ --certificate-identity "${{ github.server_url }}/${{ github.workflow_ref }}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
${{ steps.sign.outputs.images }} ${{ steps.sign.outputs.images }}

22
.github/workflows/release.yml

@ -298,8 +298,15 @@ jobs:
- name: Verify the signed image with Cosign - name: Verify the signed image with Cosign
run: | 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 \
cosign verify --certificate-identity "${{ github.server_url }}/${{ github.workflow_ref }}" --certificate-oidc-issuer "https://token.actions.githubusercontent.com" ghcr.io/bitwarden/$_PROJECT_NAME:latest --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 - name: Log out of Docker
run: | run: |
@ -406,8 +413,15 @@ jobs:
- name: Verify the signed image with Cosign - name: Verify the signed image with Cosign
run: | 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_TAG cosign verify \
cosign verify --certificate-identity "${{ github.server_url }}/${{ github.workflow_ref }}" --certificate-oidc-issuer "https://token.actions.githubusercontent.com" ghcr.io/bitwarden/self-host:latest --certificate-identity "${{ github.server_url }}/${{ github.workflow_ref }}" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
ghcr.io/bitwarden/self-host:$_RELEASE_TAG
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 Docker - name: Log out of Docker
run: docker logout ghcr.io run: docker logout ghcr.io

Loading…
Cancel
Save