vulngate

command
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Command vulngate turns govulncheck's JSON output into a gate that fails only on findings something can actually be done about.

Usage:

govulncheck -format json ./... | go run ./hack/vulngate

A finding is actionable when its advisory names a fixed version: upgrade the module and the problem goes away. A finding with no fixed version cannot be acted on here at all — there is nothing to upgrade to — so failing the build on it leaves the check red on every commit until an upstream maintainer happens to cut a release. A check that is always red is a check nobody reads, and the findings that do matter drown alongside it.

So the rule is: fail when a fix exists, report when it does not. That keeps the gate quiet until it has something to say, and what it says is always "you can do something about this".

The unfixed findings are still printed. They are worth knowing about even when they cannot be acted on, and a fix appearing upstream later moves one from the reported list into a build failure — which is exactly the moment someone should look at it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL