Skip to content

Commit

Permalink
Only run build when not in forked repo
Browse files Browse the repository at this point in the history
Environment Secrets don't get passed to fork workflows,
which breaks those workflows

See https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#pull-request-events-for-forked-repositories
With the exception of GITHUB_TOKEN, secrets are not passed to the
runner when a workflow is triggered from a forked repository.
  • Loading branch information
mikecook committed Dec 18, 2021
1 parent a21c212 commit 988c2c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Expand Up @@ -9,6 +9,7 @@ permissions:
jobs:
build:
name: Build binaries
if: ${{ github.repository == 'FiloSottile/age' }}
runs-on: ubuntu-latest
environment: "Build, sign, release binaries"
steps:
Expand Down

0 comments on commit 988c2c8

Please sign in to comment.