← All permissions
Repository permission·pages:write
Pages: Write
Tier 2 · Medium
Why Tier 2
Builds and deploys GitHub Pages. Can publish content on the repository's Pages site.
Context-dependent: the tier shown is the typical case. What the target is used for decides the real one.
- Target
- Repository
- Plane
- DataWorkflows: Workflow files and runs, variables, deployments, environments and Pages.
- Granted by
- Fine-grained PAT, GitHub App, GITHUB_TOKEN
- Available on
- Every setup
- In a workflow
permissions: pages: write
What it unlocks
7 REST endpoints need this permission. A few of them:
- POST /repos/{owner}/{repo}/pages/builds
- POST /repos/{owner}/{repo}/pages/deployments
- POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel
Roles that include it
- T0OwnerThe organization and every repository in it
- T0All-repository adminEvery repository in the organization
- T1MaintainOne repository
- T1AdminOne repository
- T1All-repository maintainEvery repository in the organization
Classic scopes that reach it
- T0repodocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.