Skip to content

ci: workflows: Remove in collaborators check. #90352

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

petejohanson-adi
Copy link
Contributor

Checking for a user in collaborators requires additional permissions not given to our token, so remove the check and rely on exception when attempting to add the user to the PR/issue.

To avoid issues with invalid assignments, add PR reviewers one at a time.

We started using the assigner workflow internally, and needed this small tweak to the script. The GH API will not allow checking for collaborators that come from a team membership unless the token used has additional permissions. By tweaking this to "ask forgiveness, not permission", we can add all the allowed folks and report errors for anyone that's not in the collaborators by individual or team membership.

Checking for a user in collaborators requires additional
permissions not given to our token, so remove the check and rely on
exception when attempting to add the user to the PR/issue.

To avoid issues with invalid assignments, add PR reviewers one at a time.

Signed-off-by: Pete Johanson <[email protected]>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants