You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix SARIF formatter silently dropping findings and missing locations (#393)
The SARIF formatter only iterated PackageDependencies when collecting
findings, causing all findings from BuildDependencies to be silently
omitted. Additionally, two rego rules produced findings with purls that
could never match a package in the formatter's purl-based lookup:
- github_action_from_unverified_creator_used used the action purl as the
finding identifier and emitted coarse "Used in N repo(s)" aggregates
with no file path or line number, resulting in empty SARIF locations.
Rewritten to emit per-step findings with path, line, job, step, and
event triggers, keyed by pkg.purl.
- known_vulnerability_in_build_platform used input.provider (e.g.
"gitlab") as the finding purl. Changed to use pkg.purl so findings
are discoverable by the formatter.
The formatter now iterates both PackageDependencies and
BuildDependencies for purl lookup, with deduplication via a seen set,
and avoids append into a foreign slice's backing array.
Fixes#390
Signed-off-by: Mikaël Barbero <mikael.barbero@eclipse-foundation.org>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
0 commit comments