Skip to content

ci: add gitleaks secret-scan workflow#1

Merged
t4sh merged 1 commit into
mainfrom
ci/add-secret-scan
Apr 18, 2026
Merged

ci: add gitleaks secret-scan workflow#1
t4sh merged 1 commit into
mainfrom
ci/add-secret-scan

Conversation

@t4sh
Copy link
Copy Markdown
Contributor

@t4sh t4sh commented Apr 18, 2026

Adds the standalone Secret Scan (gitleaks) workflow required by the org-level ruleset erphq-secret-scan.

Runs on PRs to main: scans the PR diff for secrets using gitleaks v8.30.1 (redacted output).

Ruleset is currently in evaluate mode — it logs violations but does not block merges. Once this workflow is merged across all erphq repos, the ruleset will be flipped to active.

Comment on lines +13 to +33
name: Secret Scan (gitleaks)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install gitleaks
run: |
VERSION=8.30.1
curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${VERSION}/gitleaks_${VERSION}_linux_x64.tar.gz" \
| tar -xz -C /tmp
sudo mv /tmp/gitleaks /usr/local/bin/gitleaks
gitleaks version

- name: Scan PR diff
run: |
gitleaks git \
--log-opts "origin/${{ github.base_ref }}..HEAD" \
--redact \
--verbose
@t4sh t4sh merged commit d2b28ac into main Apr 18, 2026
4 of 19 checks passed
@t4sh t4sh deleted the ci/add-secret-scan branch April 18, 2026 14:56
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