ghtier
← All permissions
Repository permission·secrets:write

Secrets: Write

Tier 1 · High

Why Tier 1

Creates, overwrites and deletes repository Actions secrets, but never reads them. Overwriting a secret that holds a deploy target, such as a kubeconfig or a registry URL, sends the pipeline that reads it there; deleting one stops it.

Data plane permissions start at Tier 2. This one is raised for the reason above.

Target
Repository
Plane
DataSecrets: Actions, environment, Dependabot, Codespaces and agent secrets, private registries and OIDC.
Granted by
Fine-grained PAT, GitHub App
Available on
Every setup

What it unlocks

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

  • PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}
  • DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}

Roles that include it

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 secretswrite_repository_actions_secretsrepository role
  • Manage environments (including environment secrets and variables)write_repository_actions_environmentsrepository role

Classic scopes that reach it

Attack paths

No attack technique, escalation or incident on ghtier goes through this yet.

Other levels

GitHub Docs: Repository permissions for "Secrets"