Skip to content
Rulesets/Default branches (main and backbranches)Active

NameDefault branches (main and backbranches)
Enforcement statusActive - This ruleset will be enforced

Target branches

Branch targeting criteria

  • Default
  • REL_*

Rules

Which rules should be applied?

Branch rules

Restrict creationsOnly allow users with bypass permission to create matching refs.
Restrict deletionsOnly allow users with bypass permissions to delete matching refs.
Require linear historyPrevent merge commits from being pushed to matching refs.
Require a pull request before mergingRequire all commits be made to a non-target branch and submitted via a pull request before they can be merged.
Require status checks to passChoose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.
Block force pushesPrevent users with push access from force pushing to refs.
Require code scanning resultsChoose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated.
  • Required tools and alert thresholds
    • CodeQL
      Security alerts threshold:
      High or higher
      Alerts threshold:
      Errors
    • Trivy
      Security alerts threshold:
      High or higher
      Alerts threshold:
      Errors
    • govulncheck
      Security alerts threshold:
      High or higher
      Alerts threshold:
      Errors
    Tools that must provide code scanning results for this rule to pass. Learn more about enabling code scanning.

Restrictions

No restrictions have been added