-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Prettier diff as comment on PRs #2115
Comments
I was just looking at the permissions section of
in other words, if anyone besides me opens a PR, the action won't not have the write permission and will fail. most of the contributions are coming from forks, so this is suboptimal. do you know if there's a workaround? |
I thought that the solution would be creating a token with permission to write PRs and pass it to In their repo they recommend using |
Just opened a question on stackoverflow. Let's see if a solution comes up. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
After a lot of fight, I believe I got to the point that this is almost solved. The thing is, it is needed to be created a token with write access to PRs for this to be possible. The action that I am using to do the comments currently doesn't have the needed permissions.
I already splitted the action into two, the one that does the checking and the one that comments on the PR, so the only action with actual
write access
would be the one that does the comment, as it is suggested for security reasons by GitHub itself. But only you @alshedivat have the right access.You can check how the comment will appear in my repo.
The text was updated successfully, but these errors were encountered: