Skip to content

Actions-ecosystem/action-remove-labels fails "Resource not accessible by integration" #25937

Answered by BrightRan
gianarb asked this question in Actions
Discussion options

You must be logged in to vote

@gianarb,

As the docs has mentioned, when a workflow is triggered from a forked repository:

  1. With the exception of GITHUB_TOKEN, secrets are not passed to the runner.

  2. The GITHUB_TOKEN only has ‘read’ permission. For more information, see “Permissions for the GITHUB_TOKEN”.

If you want the action ‘actions-ecosystem/action-remove-labels@v1’ you are using in your workflow can remove labels from the pull request, the token used to authenticate must have the ‘write’ permission for pull request in the repository.
However, as mentioned above, due to the workflow is triggered from a forked repository, there is not any available and safe way to pass the token which has the ‘write’ permission …

Replies: 2 comments

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