ci: fix secret-scan workflow — drop gitleaks-action, add persist-credentials: false#93
Closed
ci: fix secret-scan workflow — drop gitleaks-action, add persist-credentials: false#93
Conversation
- Run mypy on tests/ in addition to src/ (enforcement was local-only)
- Add gitleaks secret scanning workflow (push/PR + weekly schedule)
- Integrate Codecov for coverage reporting (replaces artifact uploads)
- Tighten dependency review with AGPL license deny-list and PR comments
- Add commit-message prefixes and PR limit to Dependabot config
- Remove Dependabot auto-merge workflow (no auto-merging)
- Add top-level permissions: {} deny-all default with per-job grants
- Add persist-credentials: false on all checkout steps
- Smarter concurrency (only cancel stale PR runs, not main pushes)
- Add workflow_dispatch trigger for manual CI runs
- Switch from gitleaks-action (requires paid license for fork PRs) to CLI-based gitleaks install (free for OSS, no license gap) - Add persist-credentials: false to secret-scan checkout (consistency) - Pin gitleaks version for reproducible builds
- Switch from gitleaks-action (requires paid license for fork PRs) to CLI-based gitleaks install (free for OSS, no license gap) - Add persist-credentials: false to secret-scan checkout (consistency) - Pin gitleaks version for reproducible builds - Replace deprecated deny-licenses with allow-licenses allow-list (MIT, Apache-2.0, BSD-2/3-Clause, ISC, MPL-2.0, PSF-2.0, etc.)
Copilot
AI
changed the title
[WIP] Harden CI/CD pipeline with new workflows and integrations
ci: fix secret-scan workflow — drop gitleaks-action, add persist-credentials: false
Mar 1, 2026
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gitleaks/gitleaks-action@v2silently skips scanning on fork PRs without a paidGITLEAKS_LICENSEsecret — the highest-risk event goes unscanned. The checkout step also lackedpersist-credentials: false, inconsistent with the security posture applied to every other workflow in this PR.Changes
curl+tar(pinned version viaGITLEAKS_VERSIONenv var); rungitleaks detect --source . -v. No license required, no fork-PR gap.persist-credentials: false: Added to theactions/checkout@v4step insecret-scan.yml, aligning withci.ymlanddependency-review.yml.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.