Skip to content

Permissions error #1011

Answered by raquelalegre
raquelalegre asked this question in Q&A
Jan 19, 2022 · 4 comments · 6 replies
Discussion options

You must be logged in to vote

Found the problem, all credit to my colleague @ageorgou :)

Secrets are not passed to workflows that are triggered by a pull request from a fork. Learn more.

Apparently even the default GITHUB_TOKEN only has read permissions if used by a fork.

That's the problem, I created the new workflow in a fork of the website repo, and it was the PR where I was trying to merge my changes to the main repo that wouldn't get permissions to access. I merged that repo, then tried from a branch from within the main repo and it all worked via GITHUB_TOKEN. No need for any further permissions.

For someone else who runs into this problem and needs to keep on pushing from a fork, a possible solution is to try…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@raquelalegre
Comment options

Comment options

You must be logged in to vote
4 replies
@raquelalegre
Comment options

@raquelalegre
Comment options

@JamesIves
Comment options

@JamesIves
Comment options

Comment options

You must be logged in to vote
1 reply
@firefoxic
Comment options

Answer selected by raquelalegre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants