Skip to content

Commit d2621d1

Browse files
CopilotAFCMS
andcommitted
Disable cosign on PRs in Docker image workflow
Co-authored-by: AFCMS <61794590+AFCMS@users.noreply.github.com>
1 parent 6df9634 commit d2621d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,15 @@ jobs:
164164
push-to-registry: false
165165

166166
- name: Install cosign
167+
if: github.event_name != 'pull_request'
167168
uses: sigstore/cosign-installer@v3
168169

169170
- name: Check cosign installation
171+
if: github.event_name != 'pull_request'
170172
run: cosign version
171173

172174
- name: Sign the images with GitHub OIDC Token
175+
if: github.event_name != 'pull_request'
173176
env:
174177
DIGEST: ${{ steps.build-and-push.outputs.digest }}
175178
TAGS: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)