ghtier
← All permissions
Repository permission·contents:read

Contents: Read

Tier 3 · Low

Why Tier 3

Reads code, commits, branches, tags and releases. On a private repository this is the source code itself.

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

Can reach T1 when the repository is private and has credentials committed in its code or history (its secret scanning alerts show whether it does).

Inferred from: GitHub Docs: secret scanning

Target
Repository
Plane
DataCode: Repository contents, branches, tags, pull requests, checks and commit signing keys.
Granted by
Fine-grained PAT, GitHub App, GITHUB_TOKEN
Available on
Every setup
In a workflow
permissions: contents: readWorkflow scopes by tier

What it unlocks

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

Roles that include it

Classic scopes that reach it

Attack paths

Other levels

GitHub Docs: Repository permissions for "Contents"