ghtier
← All permissions
Repository permission·security_events:read

Code scanning alerts: Read

Tier 3 · Low

Why Tier 3

Reads code scanning alerts and analyses. Shows where the code is weak.

Data plane permissions start at Tier 2. This one is lowered for the reason above.

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: readWorkflow scopes by tier

What it unlocks

12 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.

  • GET /orgs/{org}/code-scanning/alerts
  • GET /repos/{owner}/{repo}/code-scanning/ai-scan
  • GET /repos/{owner}/{repo}/code-scanning/alerts
  • GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}
  • GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix
  • GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances
  • GET /repos/{owner}/{repo}/code-scanning/analyses
  • GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}
  • GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}
  • GET /repos/{owner}/{repo}/dismissal-requests/code-scanningalso needs Organization dismissal requests for code scanning: Read

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.

  • View code scanning alertsread_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"