Skip to content

Owner child team is not supported by codeowners-validator #194

@jcook-uptycs

Description

@jcook-uptycs

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions