Skip to content

Commit

Permalink
Warn about the limitations of GitHub tokens
Browse files Browse the repository at this point in the history
The action will return

  Error: HttpError: Resource not accessible by integration

when triggered on a PR on a forked repository.
  • Loading branch information
dfandrich committed Jan 25, 2023
1 parent b435530 commit 6736350
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ Various inputs are defined in [`action.yml`](action.yml) to let you configure th
| `configuration-path` | The path to the label configuration file | `.github/labeler.yml` |
| `sync-labels` | Whether or not to remove labels when matching files are reverted or no longer changed by the PR | `false`

# Limitations

When an action is run for a pull request on on a forked repository, GitHub
tokens are only given [at most read
access](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token).
That means this action will not work on pull requests from third parties.

# Contributions

Contributions are welcome! See the [Contributor's Guide](CONTRIBUTING.md).

0 comments on commit 6736350

Please sign in to comment.