# Pages: Write (repository)

Tier 2 permission, `permission:pages:write`. Page: https://ghtier.com/tier/permissions/pages-write

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

**Included in roles:** [Maintain](https://ghtier.com/tier/roles/repo-maintain.md) (Tier 1), [Admin](https://ghtier.com/tier/roles/repo-admin.md) (Tier 1), [Owner](https://ghtier.com/tier/roles/org-owner.md) (Tier 0), [All-repository maintain](https://ghtier.com/tier/roles/org-all-repo-maintain.md) (Tier 1), [All-repository admin](https://ghtier.com/tier/roles/org-all-repo-admin.md) (Tier 0)

**Reached by classic scopes:** [repo](https://ghtier.com/tier/tokens/repo.md) (Tier 0)

**Strange findings:** [A Pages site from a private repository is public](https://ghtier.com/strange-findings/finding-private-repo-pages-are-public.md)

**Sources:**
- [GitHub docs](https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps#repository-permissions-for-pages)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
