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.

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: read

What it unlocks

49 REST endpoints need this permission. A few of them:

  • POST /markdown
  • GET /repos/{owner}/{repo}/activity
  • GET /repos/{owner}/{repo}/branches
  • GET /repos/{owner}/{repo}/branches/{branch}

Roles that include it

Classic scopes that reach it

Attack paths

Other levels

GitHub Docs: Repository permissions for "Contents"