← All permissions
Repository permission·secret_scanning_alerts:read
Secret scanning alerts: Read
Tier 1 · High
Why Tier 1
Reads secret scanning alerts, which include the leaked secret values themselves. Reading this is reading credentials.
Data plane permissions start at Tier 2. This one is raised for the reason above.
Can reach T0 when an open alert holds an organization-wide credential, such as an owner's classic PAT or a GitHub App private key.
Documented: GitHub Docs: secret scanning
- Target
- Repository
- Plane
- DataCode security: Code scanning, Dependabot and secret scanning alerts, advisories, dismissals and bypasses.
- Granted by
- Fine-grained PAT, GitHub App
- Available on
- Every setup
What it unlocks
18 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}/bypass-requests/secret-scanningalso needs Organization bypass requests for secret scanning: Read
- GET /orgs/{org}/dismissal-requests/secret-scanningalso needs Secret scanning alert dismissal requests: Read
- GET /orgs/{org}/secret-scanning/alerts
- GET /repos/{owner}/{repo}/bypass-requests/secret-scanningalso needs Organization bypass requests for secret scanning: Read and Secret scanning push protection bypass requests: Read
- GET /repos/{owner}/{repo}/bypass-requests/secret-scanningalso needs Organization bypass requests for secret scanning: Read and Secret scanning push protection bypass requests: Read
- GET /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}also needs Organization bypass requests for secret scanning: Read
- PATCH /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}also needs Organization bypass requests for secret scanning: Write and Secret scanning push protection bypass requests: Write
- PATCH /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}also needs Organization bypass requests for secret scanning: Write and Secret scanning push protection bypass requests: Write
- DELETE /repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}user access tokens only
- GET /repos/{owner}/{repo}/dismissal-requests/secret-scanningalso needs Contents: Read and Secret scanning alert dismissal requests: Read and Secret scanning alert dismissal requests: Read
- GET /repos/{owner}/{repo}/dismissal-requests/secret-scanningalso needs Contents: Read and Secret scanning alert dismissal requests: Read and Secret scanning alert dismissal requests: Read
- GET /repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number}also needs Contents: Read
- PATCH /repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number}also needs Contents: Read and Secret scanning alert dismissal requests: Write and Secret scanning alert dismissal requests: Write
- PATCH /repos/{owner}/{repo}/dismissal-requests/secret-scanning/{alert_number}also needs Contents: Read and Secret scanning alert dismissal requests: Write and Secret scanning alert dismissal requests: Write
- GET /repos/{owner}/{repo}/secret-scanning/alerts
- GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}
- GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations
- GET /repos/{owner}/{repo}/secret-scanning/scan-history
Roles that include it
- T0OwnerThe organization and every repository in it
- T0All-repository adminEvery repository in the organization
- T1AdminOne repository
- T1Security managerThe organization and every repository in it
- T1Enterprise security managerEvery organization in the enterprise
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 secret scanning alerts
view_secret_scanning_alertsrepository role
Classic scopes that reach it
- T0repodocumented
- T1security_eventsdocumented
Attack paths
Escalations it starts
- Harvest leaked secrets from scanning alerts: Live credentials found in code and history: cloud keys, tokens and passwords, often for systems outside GitHub.
Other levels
GitHub Docs: Repository permissions for "Secret scanning alerts"