Skip to content

fix(ci): stop overwriting checksum-verified gitleaks with an unverified download - #589

Merged
BitHighlander merged 1 commit into
alphafrom
fix/round5-gitleaks-unverified-overwrite
Aug 25, 2026
Merged

fix(ci): stop overwriting checksum-verified gitleaks with an unverified download#589
BitHighlander merged 1 commit into
alphafrom
fix/round5-gitleaks-unverified-overwrite

Conversation

@BitHighlander

Copy link
Copy Markdown
Owner

Problem

The secret-scan job's "Install gitleaks" step downloaded and sha256-verified
gitleaks 8.30.1, then immediately re-downloaded 8.30.0 through a plain
curl | tar pipe with no checksum, overwriting the just-verified binary at
/usr/local/bin/gitleaks. The scanner that actually ran on every PR was never
the checksummed artifact -- the verification step was dead weight, and the
gate carried exactly the unverified-supply-chain risk issue #424 flagged
against the original releases/latest install.

Found by independent audit of PR #585 (which fixed the all-ref scan-scope bug
but didn't touch this).

Fix

Delete the redundant unverified re-download. Keep only the checksummed 8.30.1
install; independently re-verified its sha256 against the current upstream
release before merging (matches the pinned hash).

Verification

  • Re-downloaded gitleaks 8.30.1 from the upstream release URL and confirmed
    sha256sum matches the pinned 551f6fc8... exactly.
  • Diff is a straight deletion of the second block; no new install logic
    introduced.

Fixes #586, closes the last open half of #424.

…ed download

The secret-scan job downloaded and sha256-verified gitleaks 8.30.1, then
immediately re-downloaded 8.30.0 via a plain `curl | tar` pipe with no
checksum, silently overwriting the verified binary. The binary actually
executed was never the one the checksum covered -- the verification step
was dead weight, and the job was exposed to exactly the unverified-download
risk issue #424 originally flagged.

Drop the redundant unverified re-download; keep only the checksummed 8.30.1
install (checksum independently re-verified against the current upstream
release before this change).

Fixes #586, closes the last open half of #424.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant