ghtier
← All permissions
Enterprise permission·enterprise_ref_rules:write

Enterprise Ruleset: Write

Tier 1 · High

Why Tier 1

Creates, changes and deletes enterprise rulesets, including who may bypass them. Deleting one drops its branch and push rules from every repository it targets across the enterprise.

Target
Enterprise
Plane
ManagementOrganization policy: Org and enterprise settings, rulesets, Actions policy, custom properties and Copilot controls.
Granted by
GitHub App
Available on
Enterprise Cloud, EMU, Server

What it unlocks

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

  • POST /enterprises/{enterprise}/rulesets
  • PUT /enterprises/{enterprise}/rulesets/{ruleset_id}
  • DELETE /enterprises/{enterprise}/rulesets/{ruleset_id}
  • GET /enterprises/{enterprise}/rulesets/{ruleset_id}
  • GET /enterprises/{enterprise}/rulesets/{ruleset_id}/history
  • GET /enterprises/{enterprise}/rulesets/{ruleset_id}/history/{version_id}

Roles that include it

No built-in role includes it. Only tokens, Apps or custom roles can grant it.

Classic scopes that reach it

No classic scope reaches it. Only fine-grained PATs, Apps or GITHUB_TOKEN can grant it.

Attack paths

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

GitHub Docs: Enterprise permissions for "Enterprise Ruleset"