Skip to content

How to setup github [Pull Request Labeler](https://github.com/actions/labeler) #26851

Discussion options

You must be logged in to vote

You don’t need to create the GITHUB_TOKEN. Github provides it automatically when a workflow is started, I assume that’s why the name isn’t available for your own secret. You just have to use the token, see Authentication in a workflow. That page actually has an example using actions/labeler, maybe that’ll work for you?

Edit: That page also explicitly states that the GITHUB_TOKEN created for a pull_request event from a fork will only be able to read issues. I assume that’s why the example in the actions/labeler Readme also uses pull_request_target.

Replies: 5 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
Comment options

You must be logged in to vote
0 replies
Comment options

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