Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Getting "Security review check failed: Validation Failed: "Could not resolve to a node with the global id of '<node-id>'" when requesting reviews from a team in Action Script #572

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

Closed
adamlahbib opened this issue Mar 27, 2025 · 1 comment
Labels
question A question on how to use this action

Comments

@adamlahbib
Copy link

adamlahbib commented Mar 27, 2025

Getting "Security review check failed: Validation Failed: "Could not resolve to a node with the global id of ''" when requesting reviews from a team in Action Script

await github.rest.pulls.requestReviewers({
    owner: context.repo.owner,
    repo: context.repo.repo,
    pull_number: context.issue.number,
    team_reviewers: [teamSlug]
});

Team exists and have the correct node-id, is also closed in privacy so not a secret team.

In the scoped pipeline permissions I also set pull-requests to write.

Any idea how to fix this?

Perhaps this is relevant? rowi1de/auto-assign-review-teams#17 (comment)

and is there a way to achieve it without a PAT?

@joshmgross
Copy link
Member

You'll need a PAT or GitHub App token with permissions to read that team. The Actions GITHUB_TOKEN won't have any organization permissions.

@joshmgross joshmgross added the question A question on how to use this action label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question on how to use this action
Projects
None yet
Development

No branches or pull requests

2 participants