Do you set default permissions for all new repositories?
Updated by Brady Stroud [SSW] 4 years ago. See history
123
<introEmbed
body={<>
Using GitHub Webhooks, you can set some default permissions for every new repository inside an organisation.
You can use the [repository event](https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#repository) to trigger a GitHub action to set the permissions.
See the GitHub docs [Permissions API](https://docs.github.com/en/rest/reference/actions#permissions)
</>}
/>
Add example of a GitHub action that sets the permissions
By adding this to your organisation, every new repo will already have the optimal permissions and privileges.
Categories
Related rules
Need help?
SSW Consulting has over 30 years of experience developing awesome software solutions.