Detect whether the GitHub token is read-only and fallback to logging command if needed
Closed this issue · 2 comments
leodido commented
Describe the feature or problem you’d like to solve
The (future) gh-pull-review
reporter will need a GitHub token with write permissions of the GitHub Review API.
This is because it needs to be able to write stuff into the pull request.
Proposed solution
If the GitHub token is read-only we could fallback to report via the logging command and create annotations similar to the gh-pull-check
reporter.
Additional context
NONE
fntlnz commented
This is also needed for when the lstn action is installed in a github repo and a PR is opened from a fork.
leodido commented
This was done long ago