Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action fails when PR is submitted from a fork #9

Open
per1234 opened this issue Mar 12, 2020 · 0 comments
Open

Action fails when PR is submitted from a fork #9

per1234 opened this issue Mar 12, 2020 · 0 comments

Comments

@per1234
Copy link

per1234 commented Mar 12, 2020

When a PR is submitted from a fork, the GitHub access token provided by ${{ secrets.GITHUB_TOKEN}} is downgraded to read-only. This causes the attempt to label the PR to fail:

Resource not accessible by integration

This has been discussed at actions/labeler#12.

The only workaround I've found is running the action from a scheduled workflow, as they started out to do in the actions/labeler action (actions/labeler@375fca6). However, as they realized, it's not so simple as just changing a couple lines in the workflow configuration. The action code likely needs significant reworking as well. I managed to get this working in an action that comments on PRs.

If you don't want to rework the action, the next best thing would be to document the limitation in the readme. Even if the action is limited to labeling issues, that's still very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant