ci: add secret-scan (gitleaks) job to satisfy push-protection compliance#106
ci: add secret-scan (gitleaks) job to satisfy push-protection compliance#106don-petry wants to merge 17 commits into
Conversation
Adds the required gitleaks secret-scanning job per the push-protection standard (standards/push-protection.md#layer-3--ci-secret-scanning-secondary-defense). Addresses the secret_scan_ci_job_present compliance check. - Full history checkout (fetch-depth: 0) so all commits are scanned - --redact flag ensures secrets are never written to workflow logs - --exit-code 1 fails the build on any finding - Actions pinned to SHAs per Action Pinning Policy Closes #95 Co-authored-by: don-petry <don-petry@users.noreply.github.com>
|
Warning Review limit reached
More reviews will be available in 54 minutes and 21 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@don-petry This PR adds the required |
There was a problem hiding this comment.
Pull request overview
Adds a CI “secondary defense” secret-scanning layer by introducing a dedicated secret-scan job (Gitleaks) into the main CI workflow, aligning the repo with the push-protection standard and addressing the secret_scan_ci_job_present compliance check.
Changes:
- Adds a new
secret-scanjob to.github/workflows/ci.ymlthat runs Gitleaks and fails the workflow on findings. - Uses full-history checkout (
fetch-depth: 0) and passes--redactto reduce risk of secret exposure in logs. - Pins both
actions/checkoutandgitleaks/gitleaks-actionto specific commit SHAs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Outdated review (superseded by re-review at
|
Adds the required secret-scan job to ci.yml per Layer 3 of the push-protection standard. Satisfies the secret_scan_ci_job_present compliance check (error severity). Key properties: - Full history checkout (fetch-depth: 0) — scans all commits, not just diff - --redact — leaked values are never written to workflow logs - --exit-code 1 — build fails on any finding - Both actions pinned to commit SHAs per Action Pinning Policy Also applied security_and_analysis settings via API (secret scanning, push protection, and Dependabot security updates now enabled at repo level), addressing the security_and_analysis_unavailable warning. Closes #95 Supersedes #106 Co-authored-by: don-petry <don-petry@users.noreply.github.com>
|
Auto-rebase blocked — the base branch contains Please rebase this branch manually: |
The gitleaks/gitleaks-action requires a paid license for GitHub org repos. Switch to direct CLI install via wget + sha256 verification instead.
|
CI fix: replaced The
Also removed the now-unnecessary |
|
❌ The last analysis has failed. |
|
|
@dev-lead - please fix this PR |
Dev-Lead — review-changes (applied)Changes committed and pushed. |
Dev-Lead — review-changes (applied)Changes committed and pushed. |
|
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |




Summary
secret-scanjob toci.ymlper the push-protection standardsecret_scan_ci_job_presentcompliance check (severity: error)fetch-depth: 0),--redactto protect logs, and--exit-code 1to fail on any findingNotes on
security_and_analysis_unavailableThe compliance audit reports this because the audit token lacks admin scope to read the repo's
security_and_analysissettings. Those settings (secret scanning, push protection, Dependabot security updates) need to be enabled by a repo/org admin via the GitHub UI or API. The code-side contribution we can make is ensuring the CI layer (gitleaks) is in place — which this PR delivers.Closes #95
Generated with Claude Code