Skip to content

Is it possible to use GitHub Actions to manage an open source project? ie Fork PRs fail #25501

Discussion options

You must be logged in to vote

It looks like you’re setting the GITHUB_TOKEN env var using ${{ secrets.GH_TOKEN }} instead of ${{ secrets.GITHUB_TOKEN }}. Did you manually create this secret by passing in a personal access token? If so, is there a specific reason you’ve done this—i.e. are specific permissions required that aren’t provided by the regular token?

Secrets aren’t passed to workflows that run on forks so this is likely why this variable is turning up empty:

docs.github.com

Encrypted secrets - GitHub Docs

The only secret that is passed on to fork workflows is a read-only version of the GITHUB_TOKEN, so if you can switch to using that this workflow should run. Otherwise it would be good to hear what per…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants