'Github API to manage access to Security Alerts?
After enabling the Dependabot Security Alerts you need to explicitly grant access to alerts in the Security & Analysis settings (https://github.com/[org]/[repository]/settings/security_analysis). By default collaborators don't see the Security "tab" unless they have admin rights to the repository (which we don't use).
Is there a way to do this with the GitHub API or another automated/scriptable way? This doesn't seem to be in the API, and it's not very practical to do manually with 100's of repositories.
Solution 1:[1]
While this might not be possible via API, for organizations, it appears that you can enable this for all repositories in the organization. There are also settings for private repositories. Go to: https://github.com/organizations/[org]/settings/security_analysis
You should see "Enable all" buttons.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | astrochun |
