Add API for management of access to security alerts #14021
Replies: 5 comments 5 replies
-
Hey @reedloden, thanks for the feedback. We're planning to remove the "access to alerts" UI in the not-too-distant future (once its functionality has been fully replaced with fine grained permissions and custom roles), so we aren't planning to add an API for it. Unfortunately for now that puts us in an in-between place, which I appreciate is frustrating. In addition to the script above, if you're a GitHub Enterprise customer you can use custom repository roles to achieve a similar result:
A couple of caveats:
We're keeping the "access to alerts" UI for now, because it works slightly differently to the above (it's composable with a user's role on a repo and is available to customers without an Enterprise account) but for Enterprise customers, ☝️ is the way forward. Finally, if you who want members of a team to have access to security alerts on all repositories in an organisation, the security manager role is the way to go. Apologies for the imperfect solution, and particularly that it's not available for all customers. I'm also cc-ing @hpsin who leads our wider work on identity, and will be the one who fully solves this in the future! |
Beta Was this translation helpful? Give feedback.
-
The same goes for granting access to security advisories. I'd like to always give certain users or groups access to draft advisories for given repos. |
Beta Was this translation helpful? Give feedback.
-
Special Thanks for this. I was able to create a new role from Triage and it gave the correct access to my group's Managers & Systems-Analyst. By choosing Triage we were able to maintain our separation of duties compliance keeping those with production access away from having Write permission to the codebase. I chose:
|
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
@greysteil - any news on that? It's almost 2025 :p |
Beta Was this translation helpful? Give feedback.
-
Requesting that an API be added for management of access to security alerts
See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts
Right now, users/teams have to be manually added via that UI, and with dozens if not hundreds of repositories under an organization/enterprise, that is a real maintenance burden. Would be nice to be able to use an API to automate it.
Until there's an API available, the closest I have been able to find is a script somebody wrote that just abuses the standard web interface for this purpose: https://gist.github.com/captn3m0/8806a2b7943657c39cc42502560a0f9f.
Beta Was this translation helpful? Give feedback.
All reactions