ci: allow PRs from downstream forks to pass the rest of actions #252
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One of our current actions (
MishaKav/pytest-coverage-comment@main
) requires more permissions than usual, and for now any PR from external forks would fail at this step, due to GitHub's design.In the "Set up job" section of each action's log, we can inspect the permissions for this particular run. Permissions like the below ones ("read/write") can pass
MishaKav/pytest-coverage-comment@main
.On the other hand, if only "read" permissions are granted, like below, would fail
MishaKav/pytest-coverage-comment@main
.And here's a short summary of permissions in several common cases:
main
within a repo/fork: depends on "Settings" -- "Actions" -- "General" -- "Workflow permissions", where you can control it's either "read" or "read/write".pull_request_target
is specified as the trigerring condition -- and that's exactly what this PR doesNote:
Links: