ci: fix permissions issue in label-pr workflow #77
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.
Small fix for the PR labeling workflow. It appears that the job that's supposed to run when a PR review is submitted isn't removing the needs-review label because it relies on a different GH event (
pull_request_review
) than the other jobs (pull_request_target
), and therefore doesn't auto-inherit read/write permissions on PRs. Didn't pick this up in testing because it's affected by whether the PR originates from the same repo or a fork.This is hopefully the easy fix, but the doc on maximum token permissions seems inconsistent with the doc on the permissions attribute, so it might need a different approach if this doesn't work.