-
Notifications
You must be signed in to change notification settings - Fork 139
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
⚠️ Not working with forks #13
Comments
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) |
Only works partly due to GitHub's token scopes. See #13
All I can do for now is document these limitations in the README and provide more helpful error messages. If you'd also like to see these permissions changed, please submit feedback to GitHub. |
Would it be possible to catch the 403 error when the PR is coming from a fork so it doesn't mark the action as having failed? |
GitHub introduced a new |
@samuelmeuli Thanks for making this easy to use library! Have you had any chance to consider supporting github's |
@1212gmartinez There's a WIP feature branch for this which you can try: https://github.com/wearerequired/lint-action/tree/feature/pull_request_target You should be able to use it with |
Awesome, thanks! |
See wearerequired/lint-action#13 (comment) for more details.
* New placeholders * Allow one email or phone per district or pincode * transaction test * Fix assertions * Fix formatting issues * Run black only on push, not PR. See issue wearerequired/lint-action#13 * Messages UI *Alert Messages UI * Fix test * Test case and ago group
A stale label has been added to this issue because it has been open 15 days with no activity. To keep this issue open, add a comment within 5 days. |
Based off this comment: wearerequired/lint-action#13 (comment)
Hey! Was this solved? I see that the But still when I try to use see this dependabot PR for example will it work if I change |
@thatkookooguy Pull requests by Dependabot don't have access to secrets anymore, see dependabot/dependabot-core#3253 (comment). |
Please consider using workflow commands (stdout) so that tokens are not needed and pull_request_target is not needed, as mentioned above (#13 (comment)). |
@ocean90 thanks for the tip! will definitely check it out. |
@ocean90 I'm confused. Why did you downvote? |
Ignore when commits from forked Repo wearerequired/lint-action#13 (comment)
Disable PR lint check until wearerequired/lint-action#13 has been fixed
This particular change seems like it should not be blocked, but won't help with @samuelmeuli Will you take a PR? Seems like this piece of code needs changing: Line 21 in a25b25a
|
We have issues with committing code to forked repos (wearerequired/lint-action#13) and concerns about giving permissions to untrusted forks (https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)
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.
The text was updated successfully, but these errors were encountered: