How to setup github [Pull Request Labeler](https://github.com/actions/labeler) #26851
-
Pull Request Labeler action showing error
secrets name is LABEL |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
It’s hard to say for sure without seeing your workflow, but the message sounds like there’s no
So if you want to use a secret named
That |
Beta Was this translation helpful? Give feedback.
-
here is https://github.com/letskhabar/pr-try Github repo link and https://github.com/letskhabar/pr-try/tree/master/.github/workflows is workflow link thanks |
Beta Was this translation helpful? Give feedback.
-
Ah, I see the problem. A workflow that’s triggered by a The first thing I’d try it to check if it works with |
Beta Was this translation helpful? Give feedback.
-
when I am adding
|
Beta Was this translation helpful? Give feedback.
-
You don’t need to create the Edit: That page also explicitly states that the |
Beta Was this translation helpful? Give feedback.
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 usingactions/labeler
, maybe that’ll work for you?Edit: That page also explicitly states that the
GITHUB_TOKEN
created for apull_request
event from a fork will only be able to read issues. I assume that’s why the example in theactions/labeler
Readme also usespull_request_target
.