# Actions: Write (repository)

Tier 1 permission, `permission:actions:write`. Page: https://ghtier.com/tier/permissions/actions-write

Starts workflows that have a workflow_dispatch trigger, on any branch that holds the file, with its own inputs. Also re-runs, cancels and deletes runs, approves runs from fork pull requests, disables workflows, deletes logs, caches and artifacts, and sets the repository's OIDC subject template. A re-run keeps the privileges of whoever started the original run and uses the workflow file from the original commit; re-running a run Dependabot started still gets Dependabot secrets. Starting a privileged publish or deploy job by hand was the step that mattered in the Nx incident.

**Included in roles:** [Write](https://ghtier.com/tier/roles/repo-write.md) (Tier 1), [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 write](https://ghtier.com/tier/roles/org-all-repo-write.md) (Tier 1), [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)

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

**Starts escalations:** [Start a privileged publish job by hand](https://ghtier.com/attack-paths/escalation-dispatch-to-publish.md) (Tier 1), [Switch a repository's OIDC subject to match another cloud trust](https://ghtier.com/attack-paths/escalation-oidc-template-to-cloud.md) (Tier 1)

**Abused in incidents:** [Nx "s1ngularity"](https://ghtier.com/incidents/nx-s1ngularity.md), [TeamPCP tag force-overwrite campaign](https://ghtier.com/incidents/teampcp.md)

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

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