Actions: Write
Why Tier 1
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.
Data plane permissions start at Tier 2. This one is raised for the reason above.
Can reach T0 when a workflow it can start or re-run holds a credential such as an owner's token or an App private key, and passes dispatch inputs to a shell, uses them as the ref to check out, or checks out a branch by name that the caller can push to.
Inferred from: GitHub Docs: manually run a workflow, GitHub Docs: re run workflows and jobs, GitHub Docs: secure useTested 2026-10-28 in a test organization: A re-run printed the marker from the workflow file at the original commit after the branch had a newer file, so a re-run brings in new code only through what the workflow checks out. A member's re-run of a Dependabot run kept the actor dependabot[bot] and got the Dependabot secret.
- 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: actions: writeWorkflow scopes by tier
What it unlocks
15 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.
- DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}
- DELETE /repos/{owner}/{repo}/actions/caches
- DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}
- POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun
- PUT /repos/{owner}/{repo}/actions/oidc/customization/sub
- DELETE /repos/{owner}/{repo}/actions/runs/{run_id}
- POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve
- POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel
- POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel
- DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs
- POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun
- POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs
- PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable
- POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
- PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable
Roles that include it
- T0OwnerThe organization and every repository in it
- T0All-repository adminEvery repository in the organization
- T1WriteOne repository
- T1MaintainOne repository
- T1AdminOne repository
- T1All-repository writeEvery repository in the organization
- T1All-repository maintainEvery repository in the organization
Classic scopes that reach it
- T0repodocumented
Attack paths
Techniques it enables
- Delete branches and workflow runs Delete code or cover tracks
- Trigger the publish workflow from a tampered branch Poison the build or published package
Escalations it starts
- Start a privileged publish job by hand: Whatever the publish job holds: package registry tokens and the right to publish.
- Switch a repository's OIDC subject to match another cloud trust: The credentials of a cloud role the repository was not meant to reach.
Fixed or limited by
- Enable audit logging and export it to a SIEM for retention and detection
- Branch protection on default/release branches: required reviews of the last push + required status checks
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Limit who and what can trigger workflows with workflow execution protections
- Put production secrets in environments with required reviewers