Give GitHub Security Advisories a Least-Privilege Role

Use four GitHub custom-role permissions to separate advisory viewing, remediation, triage, and publication from administrator access.

Developer Tools & Security•~8 min read•November 24, 2026•By QZ-L Editorial
#github#security#access-control#vulnerability-management
Looking for related guides? Start with the qz-l Learning Center and explore more tutorials in this topic cluster.

A private vulnerability report can move quickly through several different responsibilities: one person reviews the report, a maintainer fixes the code, a coordinator manages the disclosure, and a publisher asks for a CVE and makes the advisory public. Those jobs are related, but they should not automatically require the same GitHub access.

Historically, teams had to choose between broad roles or improvised process. GitHub now provides more precise repository-level controls. In a November 20, 2026 change, GitHub made four custom repository-role permissions for repository security advisories generally available. They apply to both repository security advisories and private vulnerability reports, and organizations can assign them only to repositories where contributors need them.

This matters for maintainers who want a real team model rather than granting repository administrator or organization-wide security-manager access. It also provides a useful boundary: advisory permissions control the GitHub advisory workflow, while normal repository and branch protections still govern code changes.

What GitHub added

The four new permissions appear under Security when an organization with custom-repository-role support creates or edits a role:

Permission Practical meaning
View security advisories Read draft advisories, status, and comments
Create, Edit, and Manage security advisories View plus create and edit advisories, comment, manage collaborators, and create a temporary private fork
Accept private vulnerability reports and close or reopen security advisories Triage intake and lifecycle states, with view or manage required
Publish security advisories and request CVEs Release the advisory or request a CVE, with view or manage required

The names make the baseline clear, but the interactions deserve care. Accept/close and publish/CVE do not replace View or Create/Edit/Manage; GitHub requires one of those two first. A role can therefore have a permission, but it cannot see or work with an advisory unless a dependency is also granted.

GitHub's implementation also distinguishes a new advisory permission from an existing security-manager role or repository-administrator role. You no longer need one of those broad roles merely to give someone a narrower advisory responsibility.

Availability depends on the organization's plan. GitHub says the feature is available on plans that support custom repository roles, including GitHub Enterprise Cloud.

Build roles around responsibilities

The safest starting point is not to create one “security” role and grant every person every permission. Instead, define a few small roles and assign them repository by repository.

Advisory reader

Use View security advisories for a team that needs visibility but should not edit an advisory or accept reports. This can fit:

  • Engineering managers tracking confidential response progress
  • Legal or compliance reviewers
  • Coordinators who prepare communication

This role should be paired with a base repository role that fits ordinary collaboration. A reader should not receive write access merely because it sees advisory data.

Advisory maintainer

Use Create, Edit, and Manage security advisories for maintainers who need to document the vulnerability, manage collaborators, comment, and create a temporary private fork.

This role is the best fit for an engineer preparing and reviewing a fix. It does not, by itself, mean the person may merge the private-fork changes or publish the advisory. The GitHub release note also says a person with this permission cannot delete a temporary private fork.

The permission does not create a blanket right to every repository. Assign it to the repositories that belong to the team or product maintaining the advisory.

Intake triage owner

Use Accept private vulnerability reports and close or reopen security advisories for the person or team that runs report intake.

This role is appropriate for someone who:

  • Reviews incoming reports
  • Accepts valid reports
  • Keeps the lifecycle moving
  • Closes or reopens a repository security advisory

It still needs View or Create/Edit/Manage. In a team setting, this may be combined with View for a read-only reviewer or Create/Edit/Manage for an engineer who also maintains a private fork.

Advisory publisher

Use Publish security advisories and request CVEs for a final-release or security-coordination role.

Publishers should normally receive a separate approval step. A person who can publish is not automatically the person who fixes code, and a person who fixes code should not be assumed to be authorized to disclose it.

Again, View or Create/Edit/Manage is required. Consider assigning this permission to a small, named team instead of granting it across an entire organization.

Keep merge, fork, and comment boundaries visible

The most important operational distinction is that advisory management is not the same as repository administration.

GitHub requires a repository administrator or security manager to merge changes from a temporary private fork. A maintainer can add code and open pull requests in that private-fork workflow, but that merge boundary remains with an administrator or security manager.

The rules for confidential comments are also narrow. Someone needs the Create, Edit, and Manage permission and write access to the repository before adding confidential comments. These requirements prevent a view-only or management-only role from being interpreted as broader repository write access.

Do not make these boundaries implicit. For example, document that an advisory manager:

  1. Creates and updates the advisory.
  2. Collaborates in a temporary private fork.
  3. Adds the fix and requests review.
  4. Escalates to an administrator or security manager for merge.
  5. Requests publication approval.

That sequence is an organizational workflow, not a promise that the role assignments will enforce every step. Permissions grant capabilities; your team still needs review, disclosure timing, and incident procedures.

Model mixed access explicitly

Custom repository roles are additive. GitHub combines permissions from a base role and custom grants. A custom role may inherit Read, Triage, Write, or Maintain access, then add additional permissions.

That means a title such as “security reviewer” can accidentally inherit more than intended. If the inherited base role is Write, the person may also have normal write access outside the advisory-specific permissions. If different grants conflict or overlap, GitHub warns about a mixed-role condition.

Before approving a role, answer:

  • What repository data should this person normally edit?
  • Is this role assigned to one repository or a team of repositories?
  • Will the base role be Read, Triage, Write, or Maintain?
  • Which of the four advisory permissions are required?
  • Who can merge private-fork changes?
  • Who can publish or request a CVE?
  • Who reviews the role after a team or repository change?

The inherited role is therefore part of the security decision. Do not design only the custom permission and ignore the baseline.

A practical rollout checklist

Start with an inventory, not a blanket conversion.

1. Inventory repositories and report owners

List repositories that handle private vulnerability reports or maintain security advisories. Identify:

  • Service or product owner
  • Report intake owner
  • Fix maintainer
  • Publication approver
  • Administrator or security manager who can merge private-fork changes

2. Define the minimum role set

For most organizations, four role concepts are sufficient:

  • Advisory viewer: View.
  • Advisory maintainer: Create/Edit/Manage, normally with repository write access needed for remediation.
  • Intake owner: Accept/close/reopen, plus View or Manage.
  • Publisher: Publish/request CVE, plus View or Manage.

Use team assignments when individuals change less often than repository ownership. Keep the publisher and merge authorities narrow.

3. Pilot with one maintained repository

Choose a repository with clear ownership. Assign users or teams by repository rather than organization-wide. Run a tabletop exercise:

  1. Add a synthetic role review or documentation-only scenario.
  2. Confirm a viewer can see but not manage.
  3. Confirm a maintainer can manage without unexpectedly receiving publish or merge rights.
  4. Confirm the designated administrator or security manager handles private-fork merge.
  5. Record which role assignments are effective and which inherited permissions are unexpectedly present.

This is a documented rollout pattern, not a claim that QZ-L ran a live GitHub test.

4. Review API and automation separately

GitHub's REST API exposes organization and repository security advisories. Repository listing has state filters such as triage, draft, published, and closed. Organization and repository endpoints have different access requirements and token scopes.

Do not assume that adding an advisory permission to a UI role automatically gives a service account every API endpoint it needs. A script should use the smallest OAuth or fine-grained credential that satisfies the official API definition and should avoid personal or organization-wide tokens when repository scope is available.

5. Audit after team changes

Custom roles require continued review. Remove repository assignments when a maintainer changes teams, reduce the inherited role where possible, and verify that former publishers cannot continue to request CVEs or open disclosure state changes.

GitHub's audit should include both direct access and additive team or organization grants. The “mixed roles” warning is useful, but it does not replace an access inventory.

Trade-offs and limits

The feature reduces the all-or-nothing choice between broad administrative access and no formal role. It does add role design, repository assignment, and review work. Small teams may find a few custom roles harder to maintain than a documented security-manager process.

Plan support is also a constraint. Organizations on GitHub Enterprise Server or plans without custom-repository-role support should not expect the same UI controls.

Finally, permissions do not solve vulnerability management on their own. They cannot decide whether a report is valid, when a fix is ready, or when a disclosure is safe. Those decisions still require engineering judgment and an incident process. Private-fork merge, branch protection, confidentiality, and publication remain separate checks.

For QZ-L and other small engineering organizations, the practical outcome is to make an advisory team's duties explicit: see, manage, accept, publish, merge, and patch are different actions. Keeping those responsibilities separate is not just a UI preference. It is a useful operating model for handling a vulnerability without granting unnecessary access.

References

Related Posts

GitHub Desktop Multiple Accounts: Keep Sign-In and Commit Identity Separate

Use GitHub Desktop's per-repository account selection without confusing remote authentication with the Git name and email recorded in commits.

GitHub OAuth Callback URLs: Remove Redirect Fragments Before February 2027

Audit GitHub OAuth and GitHub App callback URLs before February 1, 2027, remove URL fragments, and test exact redirect matching.

Modern Web Guidance 1.0: Give Your Coding Agent Better Web Judgment

Use Modern Web Guidance and live browser verification to steer coding agents toward accessible, modern, cross-browser web code.