Security vulnerabilities require quick attention from developers, security engineers, and repository maintainers. When someone discovers a vulnerability in an application, the team needs a secure way to investigate the issue, discuss possible fixes, prepare patches, and publish security information when appropriate.
GitHub provides repository security advisories and private vulnerability reporting to support this process. However, managing access to these features has traditionally created a challenge for organizations. Developers who need to investigate and resolve vulnerabilities may not need full repository administration rights, but security advisory workflows can require permissions that ordinary repository roles do not provide.
Giving every security contributor administrator access is not a good solution. Repository administrators can perform sensitive operations, including changing repository settings, managing access, and deleting repositories. These capabilities are unnecessary for developers whose responsibility is limited to investigating vulnerabilities and preparing fixes.
GitHub addresses this requirement through more granular security advisory permissions in custom repository roles. Organizations can assign specific security responsibilities without making every contributor a repository administrator or granting organization-wide security manager access.
In this article, we will explore GitHub security advisories, understand the permission differences, configure custom repository roles, and discuss how to organize vulnerability management securely.
Understanding GitHub Security Advisories
A GitHub security advisory is a structured record that describes a security vulnerability affecting a repository or software package.
It can contain information such as:
- A description of the vulnerability.
- The affected versions.
- The severity of the issue.
- The vulnerability type.
- The affected product or package.
- The recommended solution.
- Credits for vulnerability reporters and contributors.
- A CVE identifier, when applicable.
Security advisories help organizations coordinate vulnerability investigation and disclosure.
For example, imagine a development team discovers that an authentication component does not correctly validate certain input values. An attacker could potentially exploit this behavior to bypass an application security check.
The team needs to investigate the issue, identify affected versions, prepare a fix, test the changes, and coordinate disclosure.
A repository security advisory provides a private workspace for this process. Authorized collaborators can discuss the vulnerability and work on a fix before the advisory is published.
GitHub also supports private vulnerability reporting, which allows security researchers to report vulnerabilities directly to repository maintainers without immediately exposing technical details publicly.
These capabilities are useful, but they require careful permission management because unpublished vulnerability information is sensitive.
Why Giving Developers Admin Access Is a Problem
Consider an organization with 20 developers and a dedicated security team.
Three developers are responsible for investigating security vulnerabilities. They need to create draft advisories, review reports, collaborate on fixes, and update vulnerability information.
The remaining developers only need their normal repository access to implement features and fix bugs.
If the organization grants administrator access to the three security contributors simply because they need to manage advisories, it gives them capabilities beyond their responsibilities.
Repository administrators can perform operations such as:
- Manage repository collaborators and teams.
- Change repository security settings.
- Manage other repository settings.
- Modify access controls.
- Perform sensitive repository administration operations.
- Delete repositories.
A developer investigating a vulnerability does not necessarily need these capabilities.
The problem becomes more significant in organizations managing dozens or hundreds of repositories. Giving broad permissions to every security contributor increases the number of accounts that can perform sensitive operations.
A better approach is to separate security advisory responsibilities from general repository administration.
Understanding GitHub's Security Advisory Permission Model
GitHub distinguishes between repository security advisory permissions and ordinary repository permissions.
Repository owners, organization owners, security managers, and users with the appropriate administrative access can create and manage repository security advisories under the traditional permission model.
Security advisory collaborators can receive write permissions to an individual advisory, allowing them to participate in the vulnerability investigation.
However, advisory collaboration alone does not automatically provide every capability required for the complete workflow. Some operations have additional repository permission requirements.
For example, collaborators without repository write access cannot create or view confidential comments. Creating a temporary private fork also has specific restrictions.
This distinction matters because access to an advisory and access to the repository are separate considerations.
Custom Repository Roles Provide More Control
GitHub supports custom repository roles for eligible organizations. These roles allow organization owners to define additional permissions beyond the standard repository roles.
Security advisory permissions can be included when creating or editing a custom repository role.
The available security permissions include:
| Permission |
What it allows |
| View security advisories |
View draft advisories, their status, and comments |
| Create, Edit, and Manage security advisories |
Create and edit advisories, comment, manage collaborators, and create temporary private forks |
| Accept private vulnerability reports and close or reopen security advisories |
Handle private vulnerability reports and manage advisory status |
| Publish security advisories and request CVEs |
Publish advisories and request CVE identifiers |
The permissions have dependencies. The ability to accept private reports and close or reopen advisories requires either viewing permission or the Create, Edit, and Manage permission.
Similarly, publishing advisories and requesting CVEs requires one of those underlying permissions.
These permissions allow organizations to create roles that match actual security responsibilities rather than relying on full repository administration.
One important limitation remains: merging changes from a temporary private fork still requires a repository administrator or security manager. People granted these new custom permissions also cannot delete a temporary private fork.
Creating a Custom Repository Role
Let's consider a practical organization named Contoso Engineering.
The organization maintains several repositories, including:
contoso-engineering/
|
+-- authentication-service
+-- payment-api
+-- customer-portal
+-- notification-service
+-- shared-library
The security team needs to investigate vulnerabilities across these repositories. Developers should be able to work on security advisories without receiving administrator access to every repository.
An organization owner can create a custom repository role with the required permissions.
The general configuration process is as follows:
- Open the GitHub organization.
- Navigate to the organization settings.
- Open the repository roles section under access management.
- Select the option to create a custom repository role.
- Enter a meaningful role name, such as Security Advisory Contributor.
- Select the required permissions under the Security category.
- Save the custom role.
- Assign the role to the appropriate users or teams on the repositories where they need access.
The exact available options depend on the organization's GitHub plan and custom role support.
The key advantage is that the role can be assigned at the repository level. A security contributor can receive advisory permissions for authentication-service and payment-api without automatically receiving the same access to every repository in the organization.
This makes it easier to apply least-privilege access.
Designing Roles for Different Security Responsibilities
Creating one role for every possible combination of permissions can make administration difficult. A better approach is to define a small number of roles based on the work people actually perform.
For example, an organization might create the following roles.
Security Advisory Viewer
This role is suitable for team members who need to inspect existing advisories but should not modify them.
Select the View security advisories permission.
A developer assigned this role can review draft advisory information and understand the current investigation status.
This is useful for security coordinators, technical leads, or developers who need visibility into a vulnerability without participating directly in advisory management.
Security Advisory Contributor
This role is intended for developers who investigate vulnerabilities and prepare fixes.
Select the following permissions:
- View security advisories.
- Create, Edit, and Manage security advisories.
This provides the ability to work on advisories, manage collaborators, and create temporary private forks where supported.
The role should only be assigned to repositories that the developer is responsible for maintaining.
Remember that confidential comments still require repository write access in addition to the relevant advisory permissions.
Security Advisory Coordinator
This role can be designed for security engineers responsible for managing vulnerability reports and coordinating the advisory lifecycle.
In addition to the required viewing or management permission, select:
- Accept private vulnerability reports and close or reopen security advisories.
- Publish security advisories and request CVEs.
This role supports more of the advisory lifecycle without automatically providing full repository administration rights.
However, publishing a security advisory is a sensitive action. Organizations should assign this permission only to people who understand the disclosure process and are authorized to make publication decisions.
A possible role structure looks like this:
| Role |
Primary responsibility |
| Security Advisory Viewer |
Review advisory information |
| Security Advisory Contributor |
Investigate vulnerabilities and prepare fixes |
| Security Advisory Coordinator |
Manage reports and coordinate publication |
| Repository Administrator |
Handle repository administration and restricted operations |
This structure separates vulnerability investigation from general repository management.
Understanding Private Vulnerability Reporting
Private vulnerability reporting is an important part of the security advisory workflow.
It allows a security researcher to submit a vulnerability report privately to repository maintainers.
For example, a researcher discovers that a payment API exposes sensitive information under a particular request condition. Publishing the details immediately could help attackers reproduce the vulnerability before a fix is available.
Instead, the researcher can use the repository's private vulnerability reporting process.
The maintainers receive the report and can investigate it without publicly exposing the technical details.
A typical workflow looks like this:
Security Researcher
|
| Private Vulnerability Report
v
GitHub Repository
|
v
Authorized Security Team
|
| Investigate Vulnerability
| Prepare Fix
| Review Changes
v
Temporary Private Fork
|
v
Security Advisory
|
| Authorized Publication
v
Published Advisory
Custom security advisory permissions help organizations assign responsibility for accepting and managing these reports.
However, access to confidential information must still be controlled carefully. A user who can view an advisory should not automatically receive access to every repository or private security discussion.
Organizations should review the additional requirements for confidential comments and temporary private forks before defining their roles.
Using GitHub API Permissions for Security Advisory Automation
Some organizations automate vulnerability management through internal security tools.
For example, an application might collect advisory information, generate internal reports, or notify a security team when a new advisory is created.
GitHub provides REST API endpoints for repository security advisories.
Some commonly used endpoints include:
| Operation |
REST API endpoint |
| List repository advisories |
GET /repos/{owner}/{repo}/security-advisories |
| Retrieve an advisory |
GET /repos/{owner}/{repo}/security-advisories/{ghsa_id} |
| Create an advisory |
POST /repos/{owner}/{repo}/security-advisories |
| Update an advisory |
PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id} |
| Create a private vulnerability report |
POST /repos/{owner}/{repo}/security-advisories/reports |
The required permissions depend on the operation.
For fine-grained personal access tokens and GitHub Apps, the Repository security advisories permission is used with read or write access as required by the endpoint.
For example, listing advisories requires read access, while creating or updating an advisory requires write access.
A simple API request to retrieve repository advisories might look like this:
curl \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-GitHub-Api-Version: YOUR_SUPPORTED_API_VERSION" \
https://api.github.com/repos/OWNER/REPO/security-advisories
The token must have access to the target repository and the required Repository security advisories permission.
Do not assume that a custom repository role automatically grants an API token every permission required for every endpoint. The authenticated identity, token permissions, repository access, and endpoint requirements must all be considered.
For automation used across an organization, a GitHub App is generally a better option than sharing a developer's personal access token.
A GitHub App can be installed only on selected repositories and granted the required permissions. Installation access tokens can then be used by the application to perform authorized API operations.
Protecting Security Advisory Information
Security advisories can contain information that should remain confidential until the organization is ready to disclose it.
A poorly configured role can expose vulnerability details to developers who do not need them.
Organizations should apply several safeguards.
First, assign custom roles to teams rather than giving permissions to many individual users. Team-based access is easier to review when responsibilities change.
Second, scope each role to the repositories that the team actually maintains. A developer responsible for authentication-service does not necessarily need advisory access to payment-api.
Third, review role assignments regularly. When someone changes teams or leaves the organization, their access should be updated promptly.
Fourth, separate investigation and publication responsibilities when the organization's security process requires independent approval.
Finally, use audit logs and internal security procedures to understand who can access sensitive advisory information and who is authorized to publish it.
A useful permission review should consider not only what a user can do today but also what additional capabilities become available when the user is added as an advisory collaborator.
Common Mistakes to Avoid
One common mistake is giving repository administrator access to every developer who needs to work on security advisories. This creates unnecessary administrative privileges and increases the potential impact of a compromised account.
Another mistake is assuming that advisory collaboration automatically provides repository write access. These are different permissions, and certain operations, including confidential comments, have additional requirements.
Organizations may also create a custom role with viewing permission but forget to include the management permission required by the team's workflow. This can prevent developers from creating or updating advisories.
Another issue is granting publication permissions to every security contributor. Preparing a vulnerability fix and deciding when to disclose a vulnerability are different responsibilities.
Finally, avoid assuming that custom repository roles are available on every GitHub plan. Verify that the organization's plan supports custom repository roles before designing the permission model around them.
Summary
GitHub security advisories provide a structured way to investigate vulnerabilities, coordinate fixes, and publish security information. However, security contributors do not always need full repository administration rights to perform this work.
Custom repository roles provide a more granular approach by allowing organizations to assign specific security advisory permissions. Teams can grant access to view, create, manage, accept private reports, and publish advisories without automatically making every contributor a repository administrator.
A well-designed permission model separates vulnerability investigation, advisory management, publication, and repository administration. Combined with GitHub Apps, repository-level access, and regular permission reviews, this approach helps organizations manage security work while keeping sensitive repository operations restricted to the people who actually need them.
Join the conversation! Your thoughts help the community grow.