Skip to content

CI: gitleaks secret scanning on every push/PR - #4

Merged
tmalka2022 merged 1 commit into
mainfrom
security/gitleaks-ci
Jul 12, 2026
Merged

CI: gitleaks secret scanning on every push/PR#4
tmalka2022 merged 1 commit into
mainfrom
security/gitleaks-ci

Conversation

@tmalka2022

@tmalka2022 tmalka2022 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

User description

What changed

Adds .github/workflows/gitleaks.yml — full-history secret scan on every push and PR.

Part of the public-repo hardening set (the other two are repo settings, already enabled):

  1. ✅ GitHub secret scanning + push protection (blocks recognizable credentials at push time)
  2. protect-main ruleset (PRs required, no force-push/delete on main)
  3. ⬅️ this PR — gitleaks as defense-in-depth (catches history + non-provider patterns)

Design notes:

  • Generic rules only, deliberately — this file is public, so org-specific patterns (internal hostnames etc.) must never live here.
  • --redact — a hit prints that a secret was found, never the secret itself (public CI logs).
  • Pinned to gitleaks v8.30.1, matching the repo's pin-everything convention.

Testing

  • Workflow YAML validates
  • The PR itself exercises the workflow — its check run on this PR is the live test

🤖 Generated with Claude Code

https://claude.ai/code/session_01TrMEKd8TZniXL9v3PvVHP2


Generated description

Below is a concise technical summary of the changes proposed in this PR:
Add a GitHub Actions workflow that runs the pinned gitleaks scanner on every push and PR to serve as a defense-in-depth layer while keeping hits redacted. Document that this workflow complements existing GitHub secret scanning and push protection safeguards.

Latest Contributors(1)
UserCommitDate
tmalka2022ci: gitleaks secret sc...July 12, 2026
Review this PR on Baz | Customize your next review

Generic gitleaks rules only — deliberately no org-specific patterns,
since this workflow file is public. Full-history scan (fetch-depth 0),
--redact so hits never print into public CI logs. Pinned to v8.30.1.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TrMEKd8TZniXL9v3PvVHP2
@tmalka2022
tmalka2022 merged commit b9df1bf into main Jul 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant