openedx / repo-tools

Tools for repo maintenance, etc.
Apache License 2.0
31 stars 40 forks source link

feat: Adds check to ensure org doesn't have any outside collaborator #541

Closed farhan closed 3 months ago

farhan commented 4 months ago

Adds check to ensure org doesn't have any outside collaborator

Ticket: https://github.com/openedx/public-engineering/issues/169

Git api used to add check: https://docs.github.com/en/rest/orgs/outside-collaborators?apiVersion=2022-11-28

Use following command to test:

repo_checks \
--org $ORGANIZATION \
--repo $REPO
farhan commented 4 months ago

@feanil Thanks for flagging the concern

I initially thought api is not returning the list of outside collaborators as no relevant data is available in the response but we can add filter. So task is done in a simple way.