PostgreSQL 17 runners are live

Documentation

Rule policies & suppressions

Set blocking thresholds, review rule overrides and distinguish SQL suppressions from run approvals.

Draft · This guide is being reviewed and may change during early access.

Choose the right kind of exception

ChangeScopeWhat it does
Blocking thresholdOrganisation default or projectDetermines which unsuppressed findings block a completed run.
Disable a ruleOrganisation default or projectRemoves that rule's findings from policy output, except protected engine errors.
Severity overrideOrganisation default or projectChanges the severity used by policy for that rule, subject to the exceptions below.
SQL suppressionA statement or migration fileKeeps the finding and its reason, but excludes it from verdict counts and blocking.
Admin approvalA particular run and commitAllows an eligible run's GitHub check to pass without removing its findings.

Use the narrowest scope that expresses your team's decision. A reviewed exception for one statement usually does not justify turning a rule off across an organisation.

Organisation defaults and project overrides

Owners and admins can change policies. Members can read them. Open the organisation's Rules settings to set defaults, or the project's Rules tab to configure an exception for that project.

The rule catalog supplies built-in defaults. Organisation settings apply above those defaults; explicit project settings take precedence over organisation settings for that project. A project's blocking threshold can be set to Org default or to an explicit value.

For rule severity, the organisation editor labels the catalog value Default; the project editor labels the inherited value Org default. Review both enabled state and severity when changing a project rule. If you need a particular severity alongside a project override, select that severity explicitly and confirm it in the next run's findings.

Changes remain local until you choose Save Rules. Project settings offer Re-run open pull requests when saving. Otherwise, review a new run after the change; saving rules does not rewrite the evidence in an existing completed report. Organisation defaults apply to subsequent runs of projects that do not override them.

Set the blocking threshold

The Block pull requests on setting evaluates unsuppressed findings after policy is applied.

SettingFindings that block
Critical findingsCritical
High or critical findingsHigh and Critical
Medium or higherMedium, High and Critical
Low or higherLow, Medium, High and Critical
Never block (report only)No ordinary rule findings; protected engine errors still block.

An unsuppressed finding below the threshold produces a warning if its severity is Low or higher. Info findings and suppressed findings do not change the verdict. A passing verdict therefore does not necessarily mean the report contains no findings.

For example, with a High threshold, a High finding blocks and a Medium finding warns. Raising the threshold to Critical makes that High finding a warning; it does not remove its underlying risk.

Disable a rule or change its severity

Use the rule's switch to enable or disable it, and its severity selector to override its default. Follow the rule ID to the rules reference before changing the setting.

Disabling an ordinary rule removes its findings from the policy output. This is different from suppression, which leaves a reviewable finding and reason. A severity override also does not change the SQL or the observed evidence.

Findings downgraded to Info because they concern objects newly created in the pull request retain that contextual downgrade; a configured severity override does not replace it. Protected engine errors retain their severity as well.

Suppress one statement

Place a line comment immediately above the statement, with a real rule ID and a non-empty reason:

-- fronelta:allow FRN201 lookup table is small; write blocking reviewed for this rollout
CREATE INDEX countries_name_idx ON countries (name);

The example records an exception to FRN201, the non-concurrent index-build rule. It assumes the table exists in the baseline. The reason is context for human review, not proof that the operation is safe.

Name several rules with commas when each exception has been reviewed:

-- fronelta:allow FRN201,FRN501 maintenance window approved; duplicate check completed
CREATE UNIQUE INDEX countries_code_key ON countries (code);

Each named rule is suppressed for that statement only. Other rules can still report findings.

Suppress a whole file

A suppression in the file's leading line-comment block, separated from the first statement by a blank line, applies to the whole file:

-- fronelta:allow FRN201 file-wide exception: both lookup tables reviewed for write blocking

CREATE INDEX countries_name_idx ON countries (name);
CREATE INDEX currencies_name_idx ON currencies (name);

The blank line changes the scope. Keep a statement-scoped comment adjacent to its SQL; adding a blank line after a top-of-file suppression can broaden it to the whole migration.

A missing reason or an unknown rule ID makes the suppression invalid, suppresses nothing and produces FRN903. Fix the comment and review a new run. In the report, use Show suppressed to inspect suppressed findings and their reasons. They are excluded from verdict counts; they are not deleted.

Suppression is different from approval

Suppression is part of the SQL reviewed in the pull request. Approval is a separate, recorded decision for a run. Configure approvals under the project's Pull request behaviour settings:

  • No approvals: the GitHub check follows the verdict and warning-conclusion setting.
  • Admins can approve a blocked run: an eligible admin can approve a run blocked by findings.
  • Require approval for warnings and blocks: warning and blocked runs need an eligible approval before their check passes.

An owner or admin who did not open the pull request can approve an eligible run with a reason of up to 500 characters. The approval records the reviewer and reason, and the findings remain visible. A new push needs a new approval. An admin can withdraw approval to return the check to the run's verdict.

Queued, running, errored, cancelled, superseded and usage-limited runs cannot be made successful through this approval action. Drift checks do not gate a merge and are not eligible for approval.

Review the resulting check

Warnings can be published to GitHub as Neutral or Success according to project settings. Required approvals can keep those warnings red until approved. A GitHub check conclusion is therefore not interchangeable with a finding severity or the underlying run verdict.

After changing policy or adding a suppression, verify the commit, settings, finding reasons and approval state in the new report. Continue with Understanding reports, Project configuration or Troubleshooting if the result is unexpected.