Skip to content

Can't push to forked repository on the original repository's pull request with GITHUB_TOKEN #26904

Answered by chrispat
kou asked this question in Actions
Discussion options

You must be logged in to vote

This is expected behavior, as mentioned here https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions#token-permissions when running a pull_request form a fork the token can’t push contents to either repo.  This is to prevent melicious actors from using actions to poision upstrem or downstream repos.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
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
Comment options

You must be logged in to vote
0 replies
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
Labels
None yet
6 participants