github-security-alerts icon indicating copy to clipboard operation
github-security-alerts copied to clipboard

Check to see whether the current user is an admin of the open repo

Open lostintangent opened this issue 3 years ago • 0 comments

Currently, we don't check if the user is an admin on the current repo or not. We simply check to see if they can access alerts via the API, and use that to determine if we can show them in the tree. That said, if the user isn't an admin, then we shouldn't even display the options for enabling dependabot and/or learning more about code scanning.

Repo committers can currently see code scanning alerts, but not dependabot alerts. The later will change in the near future.

lostintangent avatar Oct 21 '22 23:10 lostintangent