Description
When a parent team is added to the repo with write access, and one of its child teams in added to the CODEOWNERS file codeowners-validator says the team does not have permissions associated with the repository. However it does have permissions via the parent team.
This is supported by GitHub. And shows as correct via the API.
https://docs.github.com/en/rest/repos/repos#list-codeowners-errors
Expected result
Actual result
Steps to reproduce
- Create a team
- Give team write permissions to repo
- Create a child team
- Add child team to CODEOWNERS file
- Run codeowners-validator with
owners check enabled
Troubleshooting
Description
When a parent team is added to the repo with
writeaccess, and one of its child teams in added to the CODEOWNERS filecodeowners-validatorsays the teamdoes not have permissions associated with the repository. However it does have permissions via the parent team.This is supported by GitHub. And shows as correct via the API.
https://docs.github.com/en/rest/repos/repos#list-codeowners-errors
Expected result
Actual result
Steps to reproduce
ownerscheck enabledTroubleshooting