SARIF rules
relgap outdated --format sarif, relgap drift --format sarif and relgap audit --format sarif write SARIF 2.1.0 for GitHub code scanning. Each log lists the rules below, and every result points at the pin's file and line.
| Rule | Level | Commands | Description | Help |
|---|---|---|---|---|
breaking | note | outdated | The upgrade to the latest version has breaking changes. The release notes from the pinned version to the latest version have entries classified as breaking at or above --min-confidence. | Read the digest the message names before you upgrade the pin. |
deprecation | note | outdated | The upgrade to the latest version has deprecations. The release notes from the pinned version to the latest version have entries classified as deprecations at or above --min-confidence. | Read the digest the message names and move off the deprecated features before they go away. |
eol | error | outdated | The pinned release cycle has reached its end of life. endoflife.date lists the release cycle of the pinned version as end of life, so it gets no more fixes. | Upgrade the pin to a supported release cycle. |
outdated | warning | outdated | The pin is behind the latest version. A newer stable version is out on the pin's release line. | Upgrade the pin; relgap digest lists what changed in between. |
failed | error | outdated, drift, audit | relgap couldn't check this pin or file. A file didn't parse, or looking up the tool's versions failed. | Fix the file, or run relgap again with -v to see the failing request. |
unchecked | note | outdated, audit | relgap didn't check this pin for vulnerabilities. OSV wasn't asked about the pinned version, so no result here doesn't mean the version is clean. The message gives the reason: no-advisory-source, private-source, not-exact, unresolved, offline or failed. | Pin an exact version, or check the tool another way. Details: https://relgap.sasskovacs.dev/concepts/enrichment#unchecked-pins |
drift | warning | drift | The pin differs from the version most repositories pin. The scanned repositories pin more than one version of the tool, and this pin stands for a version other than the one most of them pin. | Pin the version most repositories use, or add an ignore rule for this path in .relgap.yaml. |
Vulnerabilities
outdated and audit add one rule per OSV advisory that affects a pinned version, with the OSV ID as the rule ID. Its level comes from the advisory's CVSS rating: error for high and critical, warning for medium and for unknown severity, and note for low. The rule carries the score as security-severity, which code scanning shows as the alert's severity, and its help links to the advisory on osv.dev.
Fingerprints
Every result has the partial fingerprint relgapFinding/v1, built from the rule, the tool, the file and what the result is about. GitHub ignores it and hashes the pin's line itself; other SARIF readers can match results across runs with it.