Permissions overview
Repository owners, organization owners, security managers, and users with the admin role can:
- Create a security advisory for the repository.
- Access all security advisories for the repository.
- Add collaborators to the security advisory.
Collaborators have write permissions to the security advisory.
| Action | Write permissions | Admin permissions |
|---|---|---|
| See a draft security advisory | ||
| Add collaborators to the security advisory (see Adding a collaborator to a repository security advisory) | ||
| Edit and delete any comments in the security advisory | ||
| Create a temporary private fork in the security advisory (see Collaborating in a temporary private fork to resolve a repository security vulnerability) | ||
| Add changes to a temporary private fork in the security advisory (see Collaborating in a temporary private fork to resolve a repository security vulnerability) | ||
| Create pull requests in a temporary private fork (see Collaborating in a temporary private fork to resolve a repository security vulnerability) | ||
| Merge changes in the security advisory (see Collaborating in a temporary private fork to resolve a repository security vulnerability) | ||
| Add and edit metadata in the security advisory (see Publishing a repository security advisory) | ||
| Add and remove credits for a security advisory (see Editing a repository security advisory) | ||
| Close the draft security advisory | ||
| Publish the security advisory (see Publishing a repository security advisory) |
Collaborators with write permissions can't create a temporary private fork, with one exception: the reporter of a privately reported vulnerability can create one while they remain a collaborator on the security advisory. See Privately reporting a security vulnerability.
Repository security advisory collaborators without write access to the repository cannot create or view confidential comments. This restriction includes the reporter of a privately reported vulnerability unless they also have write access. See Managing privately reported security vulnerabilities.
Permissions from custom repository roles
Organizations that use custom repository roles can let people work on repository security advisories without making them repository administrators or security managers. Add one or more of these permissions to a custom repository role. See About custom repository roles.
- View security advisories: view draft security advisories, their status, and comments, but not confidential comments or the advisory's event history.
- Create, edit, and manage security advisories: everything in "View security advisories", plus create and edit security advisories, comment, manage collaborators, and create a temporary private fork.
- Accept private vulnerability reports and close or reopen security advisories: requires one of the permissions above.
- Publish security advisories and request CVEs: requires one of the permissions above.
| Action | View | Create, edit, and manage | Accept, close, or reopen | Publish and request CVEs |
|---|---|---|---|---|
| See draft security advisories | ||||
| Create and edit security advisories, comment, and manage collaborators | ||||
| Create a temporary private fork | ||||
| Accept a private vulnerability report, or close or reopen a security advisory | ¹ | |||
| Publish a security advisory or request a CVE | ¹ | |||
| Merge changes from a temporary private fork | ² |
¹ Only together with "View security advisories" or "Create, edit, and manage security advisories". Without one of them, these permissions grant no access.
² Merging changes from a temporary private fork still requires a repository administrator or security manager, even if a custom role includes all of these permissions.
When someone with "Create, edit, and manage security advisories" creates a temporary private fork, they are added as a collaborator on the security advisory so they can work in the fork. They remain a collaborator until they are removed, even if the custom role changes. Other people need to be added as collaborators to create pull requests in the fork.
People with these permissions can't delete a temporary private fork. Confidential comments are only available to people with "Create, edit, and manage security advisories" who also have write access to the repository.
People with "View security advisories" or "Create, edit, and manage security advisories" who watch the repository are notified about new draft security advisories and private vulnerability reports.
Permission differences for global security advisories
Unlike repository security advisories, anyone can contribute to global security advisories in the GitHub Advisory Database at github.com/advisories. Edits to global advisories will not change or affect how the advisory appears on the repository. See Editing security advisories in the GitHub Advisory Database.