Skip to content

ci: replace gitleaks with trufflehog - #13

Merged
nikitabelonogov merged 2 commits into
mainfrom
ci-trufflehog
Nov 3, 2026
Merged

nikitabelonogov merged 2 commits into
mainfrom
ci-trufflehog

Conversation

@nikitabelonogov

Copy link
Copy Markdown
Member

Replaces gitleaks with TruffleHog, matching HumanSignal/hs-platform#3611.

What changes

  • .github/workflows/gitleaks.yml → .github/workflows/trufflehog.yml. Same scope as before: the commits of each PR to `main` / `release/**` and of each push to `main`.
  • --no-verification: candidates are never sent to provider APIs, so every hit fails the job. Findings print as detector + file:line + commit only; the raw JSON (which holds the values) is not uploaded.
  • The scan starts from git merge-base base head: TruffleHog's --since-commit must be an ancestor of the head, otherwise it scans nothing and reports success.

False positives: add trufflehog:ignore on the line after the value (it is ignored before it), or a path regex to .trufflehogignore.

Checked: actionlint clean; the scan step was run locally against this repo's last 30 commits on the default branch, and against a synthetic repo (planted token → fails with its location; ignored path → passes; new branch with zero base → skips).

🤖 Generated with Claude Code

Same scope as before: the commits between the base and the head of each
PR (and push, where gitleaks ran on push). --no-verification, so every
candidate fails the job and nothing is sent to provider APIs; findings
print as detector + file:line only.

False positives: `trufflehog:ignore` after the value on its line, or a
path regex in .trufflehogignore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread .github/workflows/trufflehog.yml Fixed
…ntain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@nikitabelonogov
nikitabelonogov marked this pull request as ready for review November 3, 2026 14:29
@nikitabelonogov
nikitabelonogov merged commit 92cc36e into main Nov 3, 2026
8 checks passed
@nikitabelonogov
nikitabelonogov deleted the ci-trufflehog branch November 3, 2026 14:29
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.

2 participants