Open
Labels
bugSomething isn't working
Description
Summary
The nightly scanner run's history scan covers an empty range, so the nightly gitleaks history scan checks no commits.
Severity: medium. It's a coverage gap in the secret scan, not a false positive. Found while reviewing the signed-commit rollout; it predates that work.
Observed
Confidence: from reading the workflow; the run's own output wasn't checked.
.github/workflows/ci-nightly-heavy.ymlruns onschedule(the default branch,main) and onworkflow_dispatch.- Its "Run scanner evidence" step sets
source_commit="$(git rev-parse HEAD)"andhistory_diff_base_ref="origin/main". ci/scanners/run-scanners.py'shistory_scope()turns that intomerge-base(source, origin/main)..source.- On a scheduled run, HEAD is
main's tip, so the range ismain..main, which is empty.
Expected
The nightly history scan covers a meaningful range. That might be the whole history (no --history-diff-base-ref, so --all), or the commits since the last scanned commit, with the coverage gap recorded when it can't be computed.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
ci: require signed commits and the signed-landing check, with first-p…
ci: require signed commits and the signed-landing check, with first-p…