Skip to content

Commit 41dfc38

Browse files
authored
Remove cosign verify commands and update cosign-installed action to v4.0.0 (#239)
1 parent b70319a commit 41dfc38

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116

117117
- name: Install Cosign
118118
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
119-
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
119+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
120120

121121
- name: Sign image with Cosign
122122
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
@@ -130,7 +130,6 @@ jobs:
130130
images+=("${tag}@${DIGEST}")
131131
done
132132
cosign sign --yes "${images[@]}"
133-
echo "images=${images[*]}" >> "$GITHUB_OUTPUT"
134133
135134
- name: Scan Docker image
136135
id: container-scan

.github/workflows/publish.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
packages: write
5757
steps:
5858
- name: Install Cosign
59-
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
59+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
6060

6161
- name: Login to GitHub Container Registry
6262
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
@@ -75,13 +75,5 @@ jobs:
7575
if: ${{ inputs.publish_type != 'Dry Run' }}
7676
run: docker push "ghcr.io/bitwarden/key-connector:latest"
7777

78-
- name: Verify the signed image with Cosign
79-
if: ${{ inputs.publish_type != 'Dry Run' }}
80-
run: |
81-
cosign verify \
82-
--certificate-identity-regexp="https://github\.com/bitwarden/key-connector/.*" \
83-
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
84-
"ghcr.io/bitwarden/key-connector:latest"
85-
8678
- name: Log out of Docker
8779
run: docker logout ghcr.io

0 commit comments

Comments
 (0)