Gate pull requests on the findings this PR introduced, not your whole backlog. A security and lint gate built on MegaLinter.
A full scan blocks every PR on last year's debt.
Point a whole-repo scanner at a real codebase and it returns hundreds of findings, almost none of them from the pull request in front of you. Block on all of them and nobody ships; wave them through and the gate is theatre. Chargate gates on what the PR introduced and ships the rest where your security system can see it.
Gate the change. Ship the whole picture.
A whole-repo scan on a large codebase reports hundreds of pre-existing findings. Blocking on all of them is noise; ignoring them loses signal. Chargate splits the difference.
Net-new gating
The PR passes or fails based only on findings it introduces relative to the merge-base. Pre-existing findings never block.
MegaLinter does the scanning
v2 is a ground-up re-platform: MegaLinter runs the scanners; Chargate adds the gating layer. No hand-rolled 12-tool orchestration.
Full SARIF, always
The complete unfiltered SARIF is always emitted, so your security system still sees everything, including inherited debt and trends.
First-class sinks
Ship findings to DefectDojo and Dependency-Track, or the GitHub Security tab, straight from the same run.
Two surfaces, one CLI
A composite action for CI and a pre-commit hook for local runs, both driving
the same chargate CLI (Python 3.11+).
PR comments, GHAS style
Net-new findings land as review comments on the PR, where the developer is
already looking. Tunable severity with fail_on.
One action. Net-new findings only.
On PRs it runs MegaLinter whole-repo, gates on net-new findings, and ships the full SARIF. On push to the default branch it runs a non-gating baseline scan.
steps: - uses: magmamoose/chargate@v2 with: fail_on: high # block only on net-new high/critical # defectdojo_url: https://dd.example.com # dependency_track_url: https://dtrack.example.com
The scanners find it. Chargate decides what blocks.
A best-effort comparison against the ways teams gate security on a PR today. Corrections welcome via PR.
Configured by a handful of inputs.
↳ full input & output reference: the docs.
Actionable gates. Zero backlog noise.
Free and open source. Also on Homebrew:
brew install MagmaMoose/tap/chargate