github GitHub Changelog ·

GitHub Push Rules in Rulesets Now Support Path Exceptions

governancepreviewengineer
feature

GitHub rulesets now support path exceptions for push rules, enabling more granular control over repository content. This allows administrators to exempt specific file paths from a rule, applying policies everywhere except the chosen paths. It helps maintain strong governance without needing to relax rules broadly or enforce them externally. This feature is currently in public preview and supports 'Restrict file paths' and 'Restrict file size' rules.

Features (1)
  • Enable granular control with path exceptions for push rules

    Push rules in rulesets now support path exceptions, allowing specific file paths to be exempted from a rule. This provides more granular control, ensuring rules apply everywhere in scope except the chosen paths, and avoids relaxing policies broadly. The feature is currently in public preview and supports 'Restrict file paths' and 'Restrict file size' rules.

Read the original announcement →

https://github.blog/changelog/2026-08-25-push-rules-in-rulesets-now-support-path-exceptions

Related releases