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
{{ message }}
Repository navigation
SLSA level extraction falls back to a hardcoded level 2 heuristic #14
verifySLSA shells to gh attestation verify --format json and regex-extracts the SLSA level. When the regex doesn't match an explicit level but the output contains "verified", it assumes level 2:
// gh attestation verify success without explicit level = at least L2ifstrings.Contains(strings.ToLower(ghOutput), "verified") { return2 }
This can mis-report an L1 or L3 attestation as L2 — wrong in both the lenient and strict direction for a --min-slsa-level gate. The regex (?i)slsa[^"]*level["\s:]+(\d) is also fragile to gh output format changes and doesn't bound the captured digit.
Fix
Parse the gh attestation verify --format json output structurally (the predicate carries the builder + provenance), derive the level from the actual SLSA predicate rather than a substring heuristic, and treat "verified but level indeterminate" as a distinct state (not a silent L2). Add tests with captured gh JSON fixtures.
Activity
Merge pull request #18 from provabl/feat/slsa-structural-and-gh-ergon…
feat(release): SLSA L3 provenance pilot; backfill CHANGELOG; copyrigh…