ghtier
← All permissions
Organization permission·organization_secrets:write

Secrets: Write

Tier 1 · High

Why Tier 1

Creates, overwrites and deletes organization Actions secrets. Adds repositories to a secret shared with selected repositories without knowing its value, so any repository whose workflows the caller can change can read it. Overwriting a secret that holds a deploy target, such as a kubeconfig or a registry URL, sends every pipeline that reads it there; deleting one stops them.

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

Can reach T0 when an organization secret holds an organization-wide credential, such as an owner's classic PAT or a GitHub App private key, and the caller can change workflows in any repository it can add to that secret.

Inferred from: GitHub Docs: secrets, GitHub Docs: secure use

Target
Organization
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

5 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 /orgs/{org}/actions/secrets/{secret_name}
  • DELETE /orgs/{org}/actions/secrets/{secret_name}
  • PUT /orgs/{org}/actions/secrets/{secret_name}/repositories
  • PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}also needs a permission GitHub's data does not name
  • DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}also needs a permission GitHub's data does not name

Roles that include it

  • T0OwnerThe organization and every repository in it
  • T1CI/CD adminThe organization's Actions setup

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 organization Actions secretswrite_organization_actions_secretsorganization role

Classic scopes that reach it

Attack paths

Escalations it starts

Other levels

GitHub Docs: Organization permissions for "Secrets"