Skip to content

Commit

Permalink
CI: Don't sign build artifacts on forks (#1409)
Browse files Browse the repository at this point in the history
The GPG signing step requires access to repository secrets that (apparently)
aren't visible to forks. Let's just not sign build artifacts on forks to avoid
this issue.

This mirrors a corresponding change made to `saw-script`'s CI in
GaloisInc/saw-script@eedcba1 and
GaloisInc/saw-script@ac082b0.
  • Loading branch information
RyanGlScott authored Aug 22, 2022
1 parent 2b425be commit d04aa87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
- if: runner.os == 'Windows'
run: .github/wix.ps1

- if: runner.os == 'Windows'
- if: runner.os == 'Windows' && github.event.pull_request.head.repo.fork == false
shell: bash
env:
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
Expand All @@ -183,7 +183,8 @@ jobs:
env:
OS_TAG: ${{ matrix.os }}

- shell: bash
- if: github.event.pull_request.head.repo.fork == false
shell: bash
env:
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
Expand Down

0 comments on commit d04aa87

Please sign in to comment.