Essay · November 21, 2026

Build a CI/CD Security Gate on Proof

A CI/CD security gate built on proven-exploitable findings blocks real risks without drowning developers in unreachable severity scores. GitHub Actions walkthrough using Sekura.

Sekura — owl-in-shield mark

A CI/CD security gate built on proven-exploitable findings blocks real risks without drowning developers in unreachable severity scores. GitHub Actions walkthrough using Sekura.

Hypotheses in, proven findings out 28 candidate findings move toward a gate. Only 4 carry a working proof of exploit and pass through; the rest are dropped. HYPOTHESES VERDICTGATE PROVEN 28 hypotheses 4 with a working proof
Hypotheses in, proven findings out: a finding without a working proof never reaches the report.

A CI/CD security gate that fires on scanner severity scores is measuring the wrong thing.

Key facts

  1. Most SAST tools produce hundreds of findings per codebase. Research from Veracode's annual State of Software Security report consistently shows fewer than 15% are reachable or exploitable in production context.
  2. CVSS scores are advisory. They do not encode whether an attacker can reach the vulnerable code path in your specific application.
  3. A gate that blocks too often gets bypassed. Developers add --ignore flags, approve overrides without reading, or disable the check entirely.
  4. SARIF severity levels (error, warning, note) are set by the scanner. If the scanner has not verified exploitability, that error is a guess.
  5. Sekura labels findings as verified or unverified. Verified findings include a working proof-of-exploit. Unverified findings are surfaced in the report but should not be what blocks a deploy.

Why severity scores break CI/CD security gates

Severity scores describe how bad a finding could be, in the worst-case scenario, in a generic environment. They do not describe what an attacker can do to your application right now.

A SQL injection in dead code is CVSS 9.1. A SQL injection in a live form with no parameterization is also CVSS 9.1. Blocking on the score treats them identically.

The result is alert fatigue. The team trains itself to click through overrides. The gate stops being a gate.

The fix is not a smarter threshold. It is a different kind of output. Block on exploitability, not severity. Surface unverified findings as warnings, not blockers. I think this distinction is what separates a gate that works from one that gets turned off.

How the gate should behave

Here is the decision flow for a gate that uses verified findings as the blocking signal:

flowchart TD A[Push or pull request] --> B[Trigger Sekura scan] B --> C{Any verified findings?} C -- Yes --> D[Fail CI: block merge] C -- No --> E{Any unverified findings?} E -- Yes --> F[Warn: surface in PR review comments] E -- No --> G[Pass CI: allow merge] D --> H[Developer reads proof-of-exploit in PR] F --> I[Developer sees finding with unverified label]

Verified findings block. Unverified findings warn. The developer sees both. They know what is confirmed and what is not. That is the information they need to make a good decision quickly.

Setting up the gate with GitHub Actions

The workflow below runs a Sekura scan on every push and pull request. It uploads SARIF to GitHub Security, which surfaces findings in the Security tab and as inline PR comments. The block-on-verified: true flag causes the action to exit with a non-zero code if any verified findings are present.

name: Sekura Security Gate
on:
  push:
    branches: [main, dev]
  pull_request:
jobs:
  security-gate:
    runs-on: ubuntu-latest
    permissions:
      security-events: write
      contents: read
    steps:
      - uses: actions/checkout@v4

      - name: Run Sekura scan
        uses: sekura-ai/sekura-action@v1
        with:
          token: ${{ secrets.SEKURA_TOKEN }}
          block-on-verified: true
          sarif-output: sekura.sarif

      - name: Upload SARIF
        if: always()
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: sekura.sarif

The if: always() on the SARIF upload step matters. Even when the gate fails, you want the findings uploaded so the developer can read the proof-of-exploit directly in the PR, not hunt for it in a separate report.

You set SEKURA_TOKEN as a repository secret. Run npx sekura init to create the token and commit the workflow file in one step. See what npx sekura init actually does for a full breakdown of what that command writes to your repository.

Sekura's pipeline runs seven phases: white-box SAST, recon, dynamic probing, exploit synthesis, exploit-chain analysis, post-quantum cryptography review, and reporting. By the time output reaches your SARIF file, each finding has gone through exploit synthesis. We designed the output this way so the gate gets a confirmed signal rather than a heuristic one.

Tuning the gate over time

A well-tuned gate is not a set-and-forget configuration. Three things to review each quarter:

  1. Branch scope. Start with feature branches. Add main and dev once the team trusts the signal. Add release/* when you are ready to block deploys at release time too.
  2. Override policy. Decide in advance what approves a bypass. A verified finding should require two reviewers to override, not one. Write the policy down before someone needs it.
  3. Unverified finding review. Run a monthly pass over unverified findings to check whether any turned out to be exploitable in context. The pipeline surfaces them so you do not lose them.

The triage cost of unreachable findings compounds with every sprint. A gate that blocks on the right signal saves that cost on every future deploy. If you want to understand how Sekura generates the proof-of-exploit that makes the verified flag possible, exploit chain analysis covers the pipeline phase that produces it.

Security gates fail when the signal-to-noise ratio tips past the point where developers trust the output. The question is not how to tighten the threshold. It is how to make the threshold mean something.

Run your first free scan at sekura.ai/app/start and see what a verified finding looks like before you wire it into CI/CD.