Quality Gates

What it does #

Your organisation gets one gate. It answers a single question about a change: does it introduce a Security Floor issue? If it does, the check fails. If it doesn’t, the check passes.

The gate is deliberately narrow. It isn’t a quality score, a coverage threshold, or a rule-by-rule policy — it’s a floor, and the floor is the set of findings nobody should merge.

It only ever looks at your diff #

This is the part worth understanding, because it decides what the gate can and cannot catch.

A Quality Gate runs on a merge check — the same diff-scoped scan behind pull request checks. It analyses only the files your change touches, and within them it counts only the issues your change introduces. Pre-existing Security Floor issues elsewhere in the repository do not fail the gate.

Two consequences:

  • You can turn the gate on without fixing your backlog first. A repository full of existing findings still passes, as long as the change in front of it adds nothing new.
  • The gate is not a full security audit. It never looks at files your change didn’t touch. For the whole picture, run a scan and read the Production Ready Score.

When Norma is already checking a commit — because a pull request check is running on it — the gate reuses that analysis instead of scanning twice.

What the Security Floor covers #

The Security Floor is Norma’s list of findings that block certification. Its rules are grouped into five categories.

Category What it covers
Injection SQL injection
Secrets Hardcoded credentials, tokens, keys and connection strings
Authorization Row-level security without an identity check
Authentication Endpoints and functions with no authentication
Dependencies Invented, malicious or vulnerable package: a package or version that does not exist, a known malicious package, or a package version with a critical or high vulnerability

The Gate tab shows these categories with their rule counts, read-only. You can’t edit the condition in this version — every organisation’s gate has the same floor. The Floor and its effect on your score are explained under Production Ready Score — The Security Floor.

Results on GitHub #

The gate publishes the check Norma Quality Gate on pull requests to the reference branch of the repositories you assign to it, with an annotation on each offending changed line.

What happened Check result Blocks a required check?
The change introduces no Security Floor issue Success No
The change introduces one or more Failure Yes
Norma couldn’t analyse the change Failure, with the reason Yes
The analysis took more than 20 minutes Failure, reason “timeout” Yes
The pull request comes from a fork Neutral, with the reason No
The pull request targets another branch Skipped, with the reason No

A failed check doesn’t block anything on its own. GitHub only blocks a merge when the check is required — which you set in a GitHub ruleset, not in Norma.

Setting it up #

  1. Open Quality Gates in the main menu. The Gate tab shows the Security Floor and the repositories using the gate.
  2. Add repositories. Only repositories imported through the GitHub App can be added; others appear as not available. A repository that isn’t on the list is never evaluated and gets no check.
  3. Approve the permission. The CI access tab shows a banner until an owner of your GitHub organisation approves Norma’s checks: write permission. Until then the check can’t be published.
  4. Make the check required, if you want it to block merges: in GitHub, add Norma Quality Gate to a ruleset for the branch you protect.

Only organisation admins can change the repository list. Everyone else sees it read-only.

Require the check only on the repositories you assigned. A GitHub ruleset can require a check across every repository in your GitHub organisation. Norma publishes no check for repositories that aren’t on the gate’s list, so a required check would leave their pull requests waiting forever.

Connecting other CI #

A pipeline that isn’t GitHub — or a GitHub workflow that wants the verdict itself — asks Norma directly with a CI API key.

  1. In Quality Gates → CI access → Other CI (API key), an organisation admin creates a key with a name and an optional expiry.
  2. Norma shows the key once, with a ready-to-paste pipeline step that requests the evaluation, waits for it, and exits with a status code.
  3. The key covers every repository on the gate’s list.

Your pipeline sends the repository, the source branch and the head commit; Norma returns an evaluation id and a portal link, and the step polls until the verdict arrives:

Verdict When Exit code
PASSED No Security Floor issue introduced 0
FAILED One or more introduced 1
NOT_EVALUATED Norma couldn’t evaluate, or timed out 2
SKIPPED Target branch isn’t the reference branch, or the plan doesn’t include Quality Gates 0
— Configuration error: missing, unknown, revoked or expired key; unknown repository; repository not on the gate’s list 3

The result lists the counted issues — severity, impact area, rule, file and line — and never includes a code snippet.

Keys are listed with their creator, dates, last use and state. Revoking one takes effect immediately, and revoked keys stay on the list rather than disappearing. A CI API key is not an MCP key, and the two aren’t interchangeable.

Limits & notes #

  • Quality Gates is a paid feature. Which plans include it is set by Quality Clouds; organisations without it see the menu item locked with an upgrade offer.
  • If your plan stops including it, Norma publishes the check as skipped on new commits, so a required check stops blocking merges. Your repository list is kept and comes back if the entitlement returns.
  • One gate per organisation, with one condition. Multiple gates, observe mode, severity limits and compliance conditions are not in this version.
  • GitHub only. Bitbucket repositories can’t be added to the gate yet.
  • Forks and other target branches are never blocked — neutral and skipped respectively.
  • No verdict line in the pull request comment in this version; the comment and the check are separate surfaces.

Related #

Was it helpful ?