ghtier
← All permissions
Repository permission·security_events:write

Code scanning alerts: Write

Tier 2 · Medium

Why Tier 2

Dismisses code scanning alerts and uploads analyses, so findings can disappear without a fix.

Target
Repository
Plane
DataCode security: Code scanning, Dependabot and secret scanning alerts, advisories, dismissals and bypasses.
Granted by
Fine-grained PAT, GitHub App, GITHUB_TOKEN
Available on
Every setup
In a workflow
permissions: security-events: writeWorkflow scopes by tier

What it unlocks

4 REST endpoints need this permission, from GitHub's docs data. Some also need another permission, and a few work with only one kind of token.

  • PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}
  • POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix
  • DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}
  • POST /repos/{owner}/{repo}/code-scanning/sarifs

Roles that include it

Custom role permissions that add it

An owner can build a custom role from these on Enterprise Cloud. Nobody holds one until a custom role with it is assigned.

  • Dismiss or reopen code scanning alertswrite_code_scanningrepository role
  • Delete code scanning alertsdelete_alerts_code_scanningrepository role

Classic scopes that reach it

Attack paths

No attack technique, escalation or incident on ghtier goes through this yet.

Other levels

GitHub Docs: Repository permissions for "Code scanning alerts"