Pages: Write
Why Tier 2
Rebuilds the site from the default branch, cancels deployments, and deploys an Actions artifact to the site. A deployment also needs an OIDC token issued to a workflow run in the same repository, so new content goes out through a Pages workflow, not the API alone; the call itself can come from outside the run while the token is valid. Changing the site's source, custom domain or HTTPS also needs Administration (write).
Can reach T1 when the site is on a domain people trust for downloads or install scripts, and a Pages workflow deploys content the caller can change, so a change there reaches everyone who runs them.
Inferred from: GitHub Docs: pagesTested 2026-10-28 in a test organization: A fine-grained token with Pages (write) created a deployment with an OIDC token from a run in the same repository. The same request with a token from another repository's run in the organization got 404.
- 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: writeWorkflow scopes by tier
What it unlocks
7 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.
- POST /repos/{owner}/{repo}/pagesalso needs Administration: Write
- PUT /repos/{owner}/{repo}/pagesalso needs Administration: Write
- DELETE /repos/{owner}/{repo}/pagesalso needs Administration: Write
- POST /repos/{owner}/{repo}/pages/builds
- POST /repos/{owner}/{repo}/pages/deployments
- POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel
- GET /repos/{owner}/{repo}/pages/healthalso needs Administration: Write
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
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.
- Manage GitHub Pages settings
manage_settings_pagesrepository role
Classic scopes that reach it
- T0repodocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.