-
-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
bugSomething isn't workingSomething isn't working
Description
🐞 Describe the bug
Even though the requested team (TEAM_REVIEWERS: Kong/k8s-maintainers
) has maintain
permissions

the action complains:
Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the repository.
https://github.com/Kong/gateway-operator/actions/runs/15050038501/job/42302332855#step:3:28
Repository Info
Slug : charts
Owner : Kong
Https Url : https://github.com/Kong/charts
Branch : default
Found existing PR 1312
Locally syncing file(s) between source and target repository
Source is directory
Pushing changes to target repository
Overwriting existing PR
Notice: Pull Request #1312 created/updated: https://github.com/Kong/charts/pull/1312
Adding label(s) "sync" to PR
Adding team reviewer(s) "Kong/k8s-maintainers" to PR
Error: Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the Kong/charts repository.
📚 To reproduce
Set a team with maintain
permissions as TEAM_REVIEWERS
.
💡 Expected behavior
No error.
🖼️ Screenshots
No response
⚙️ Environment
https://github.com/BetaHuhn/repo-file-sync-action/releases/tag/v1.21.1
📋 Additional context
No response
sandromodarelli and adrianriepl
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Milestone
Relationships
Development
Select code repository
Activity
adrianriepl commentedon Jul 24, 2025
Have you tried specifying the team without the owner in front? So instead of
Kong/k8s-maintainers
usek8s-maintainers
only when specifyingTEAM_REVIEWERS
.When I did that I got the following error:
Validation Failed: "Could not resolve to a node with the global id of 'XXXX'."
This error however, is a permission issue as my app installation token did not have the permission to read teams, which actually is the
Members (read)
permission.I think adding these insights to the
README
would be great.pmalek commentedon Jul 25, 2025
@adrianriepl
It seems that I'm also getting the same error:
but my PAT is also set to have the read permissions on members:
adrianriepl commentedon Jul 25, 2025
The error you get now indicates that there is a permission issue.
You are using a "classic" PAT, correct? Because I have selected the permission below and then it worked. You might need to use a fine-grained personal access token. If you change to this type of PAT, make sure to set
IS_FINE_GRAINED
too.I am not sure, which permission corresponds to the same permission in a classic PAT.
Also don't know if one of these apply to your org:
pmalek commentedon Aug 1, 2025
That is true.
AFAIR the issue with fine-grained tokens was that it required the user to be added to the org which I couldn't do at the time.
In any case I left the team reviewers unset. I believe that the error should be more explicit to give users information on what's actually the problem here rather than just dumping the ambiguous error like
Could not resolve to a node with the global id
.