{
  "schemaVersion": 5,
  "edition": {
    "edition": "2026-Q4",
    "reviewedAt": "2026-10-11",
    "nextReview": "2027-01-15"
  },
  "license": "CC-BY-4.0",
  "generatedAt": "2026-11-27T16:39:29.254Z",
  "namePrefix": "ghtier: ",
  "names": {
    "branch": "default branch",
    "tag": "release tags",
    "push": "protected files"
  },
  "templates": [
    {
      "id": "pull-request-review",
      "title": "Require a reviewed pull request and passing status checks",
      "target": "branch",
      "refs": [
        "~DEFAULT_BRANCH"
      ],
      "items": [
        "repo-branch-protection"
      ],
      "rules": [
        {
          "type": "pull_request",
          "parameters": {
            "required_approving_review_count": 1,
            "dismiss_stale_reviews_on_push": true,
            "require_last_push_approval": true,
            "require_code_owner_review": false,
            "required_review_thread_resolution": false
          }
        },
        {
          "type": "required_status_checks",
          "parameters": {
            "required_status_checks": "{status_checks}",
            "strict_required_status_checks_policy": true
          }
        }
      ],
      "inputs": [
        {
          "id": "status_checks",
          "label": "Status checks that must pass, by name",
          "example": [
            {
              "context": "build"
            }
          ]
        }
      ]
    },
    {
      "id": "no-deletion-force-push",
      "title": "Block deletion and force pushes",
      "target": "branch",
      "refs": [
        "~DEFAULT_BRANCH"
      ],
      "items": [
        "repo-prevent-branch-deletion"
      ],
      "rules": [
        {
          "type": "deletion"
        },
        {
          "type": "non_fast_forward"
        }
      ]
    },
    {
      "id": "code-owner-review",
      "title": "Require review from code owners",
      "target": "branch",
      "refs": [
        "~DEFAULT_BRANCH"
      ],
      "items": [
        "repo-codeowners"
      ],
      "rules": [
        {
          "type": "pull_request",
          "parameters": {
            "required_approving_review_count": 1,
            "dismiss_stale_reviews_on_push": true,
            "require_last_push_approval": false,
            "require_code_owner_review": true,
            "required_review_thread_resolution": false
          }
        }
      ]
    },
    {
      "id": "signed-commits",
      "title": "Require signed commits",
      "target": "branch",
      "refs": [
        "~DEFAULT_BRANCH"
      ],
      "items": [
        "repo-signed-commits"
      ],
      "rules": [
        {
          "type": "required_signatures"
        }
      ]
    },
    {
      "id": "code-scanning-results",
      "title": "Require code scanning results",
      "target": "branch",
      "refs": [
        "~DEFAULT_BRANCH"
      ],
      "items": [
        "ghas-code-scanning"
      ],
      "rules": [
        {
          "type": "code_scanning",
          "parameters": {
            "code_scanning_tools": [
              {
                "tool": "CodeQL",
                "alerts_threshold": "errors",
                "security_alerts_threshold": "high_or_higher"
              }
            ]
          }
        }
      ]
    },
    {
      "id": "release-tags",
      "title": "Block updates and deletion of release tags",
      "target": "tag",
      "refs": [
        "refs/tags/v*"
      ],
      "items": [
        "repo-rulesets",
        "repo-immutable-releases"
      ],
      "rules": [
        {
          "type": "update",
          "parameters": {
            "update_allows_fetch_and_merge": false
          }
        },
        {
          "type": "deletion"
        }
      ]
    },
    {
      "id": "workflow-paths",
      "title": "Restrict pushes to workflow files",
      "target": "push",
      "items": [
        "repo-rulesets",
        "org-agent-mcp-controls"
      ],
      "rules": [
        {
          "type": "file_path_restriction",
          "parameters": {
            "restricted_file_paths": "{restricted_paths}"
          }
        }
      ],
      "inputs": [
        {
          "id": "restricted_paths",
          "label": "File paths only the bypass list may change",
          "example": [
            ".github/workflows/**",
            ".github/actions/**"
          ]
        }
      ]
    }
  ],
  "noTemplate": {
    "org-custom-properties": "It sets which repositories a ruleset targets, not a rule.",
    "org-audit-log-siem": "It alerts on ruleset changes; it does not create one.",
    "repo-committer-match-pusher": "The rule is a preview and is not in GitHub's REST API description yet.",
    "ghas-dependency-review": "The status check's name depends on the organization's own workflow; add it under status checks."
  }
}
