# Deployments: Write (repository)

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

Creates and deletes deployments for any branch, tag or commit, sets their statuses, and approves or rejects pending jobs where the caller is a required reviewer or the custom protection rule. A deployment triggers workflows on the deployment event at the commit it names, and a success status can satisfy a rule that requires deployments to succeed before merging. A deployment branch policy on the environment limits which refs can deploy.

**Reached by classic scopes:** [repo](https://ghtier.com/tier/tokens/repo.md) (Tier 0), [repo_deployment](https://ghtier.com/tier/tokens/repo-deployment.md) (Tier 2), [public_repo](https://ghtier.com/tier/tokens/public-repo.md) (Tier 2)

**Keys and policies that act as or change it:** [Environment required reviewer](https://ghtier.com/tier/keys-policies/environment-reviewer.md) (Tier 2)

**Enables techniques:** [Trigger the publish workflow from a tampered branch](https://ghtier.com/attack-paths/technique-dispatch-publish.md) (Tier 1)

**Starts escalations:** [Create a deployment that starts the deploy workflow](https://ghtier.com/attack-paths/escalation-deployment-to-deploy-job.md) (Tier 1)

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

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