Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Creating annotations and auto-fixes works as expected when the code is on a branch in the same repository.
Unfortunately, it currently doesn't seem work with pull requests from forks: The action has no permission to push auto-fix changes or create annotations.
It seems like this is impossible with GitHub's current token scopes.
The action needs permissions for two operations:
If the action is triggered on changes to the main repository, it will work because the
Note that the
If anybody is aware of a workaround, I'd be very happy to hear it :)
Related: actions/checkout#124 (comment)