Skip to content

Commit d130903

Browse files
authored
ci: attempt to fix CI issue for PRs and cosign (#25)
It appears that forks and PRs created from those forks will have issues using cosign so attempt to skip it in that case.
1 parent 539e4ee commit d130903

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
uses: anchore/sbom-action/download-syft@f8bdd1d8ac5e901a77a92f111440fdb1b593736b # v0.20.6
7070

7171
- name: Install cosign
72+
if: github.event.pull_request.head.repo.fork != true
7273
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
7374

7475
- name: Set up QEMU
@@ -82,7 +83,7 @@ jobs:
8283
with:
8384
distribution: goreleaser
8485
version: "~> v2"
85-
args: release --clean --skip=publish --snapshot
86+
args: release --clean --skip=publish --snapshot ${{ github.event.pull_request.head.repo.fork == true && '--skip=sign' || '' }}
8687

8788
chart:
8889
name: Lint Helm charts

0 commit comments

Comments
 (0)