-
-
Notifications
You must be signed in to change notification settings - Fork 22
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 on forked repos #2
Comments
|
And it's same for |
Oh, but it looks like there is a different problem. reviwedog should output something as your comments. |
I get it. The errors are both outside diff, so reviewdog didn't find new errors and exit with 0. A new feature in reviewdog reviewdog/reviewdog#332 can report results regardless of that the results are in or outside diff, but it's expected behavior for github-pr-review rerpoter. |
Yup, it's not showing any output which is very weird. Still, even if I get output I fear I'll hit the token permissions issue. I am testing if the personal token workaround is valid or not. I think it's a diff issue, but I am unsure of what to even do there. |
AHA! So it was a diff issue. I'll do some more tests |
You can investigate GitHub Actions spec but there are no workaround unfortunetely. |
For Buuuut that was for commits. Unsure if a Personal Token can be used for checks -- and from my initial testing it looks like it won't work 😞 Still, I imagine that for comments/ reviews it should be fine so I'll test a bit more. |
Very Interesting. It should be still unsafe to access a secret variable because malicious users can steal the secret... I didn't try it by myself yet, but it might be better to report it to GitHub.
Can you elaborate it more? I don't understand your question. |
For the
Ah. My logic was this: user tokens cannot be used for Checks but they can be used to post reviews and/or comments. What if there was a |
For some reason the action does not output anything if running for a forked repository.
Tflint does output the errors correctly, but reviewdog does not post a comment or any output.
Example of run without anything happening: https://github.com/Castravete/repo-for-fork-testing/pull/7/checks
@haya14busa any idea how I can debug this?
The text was updated successfully, but these errors were encountered: