Skip to content

fix(ci): replace gitleaks-action with free CLI to fix expired license#2254

Merged
imran-siddique merged 1 commit into
microsoft:mainfrom
imran-siddique:fix/gitleaks-license
May 14, 2026
Merged

fix(ci): replace gitleaks-action with free CLI to fix expired license#2254
imran-siddique merged 1 commit into
microsoft:mainfrom
imran-siddique:fix/gitleaks-license

Conversation

@imran-siddique
Copy link
Copy Markdown
Member

The gitleaks GitHub Action requires a paid GITLEAKS_LICENSE secret for org repos. The secret expired, breaking Secret Scanning on all PRs.

Fix: Replace the gitleaks-action with a direct install of the gitleaks CLI (MIT-licensed, free). Also moves PR SHA interpolation into env vars to stay consistent with prior workflow injection hardening.

Unblocks PR #2240 and all other PRs currently failing on Secret Scanning.

The gitleaks GitHub Action requires a paid GITLEAKS_LICENSE secret for
org repos. The secret expired, breaking Secret Scanning on all PRs.
Switch to installing the gitleaks CLI directly (MIT-licensed, free)
and running it as a shell step. Also moves PR SHA interpolation to
env vars to avoid workflow injection (consistent with prior hardening).

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Imran Siddique <[email protected]>
@github-actions
Copy link
Copy Markdown

🤖 AI Agent: security-scanner — View details

No security issues found.

@github-actions github-actions Bot added the size/S Small PR (< 50 lines) label May 14, 2026
@github-actions
Copy link
Copy Markdown

🤖 AI Agent: docs-sync-checker — Docs Sync

Docs Sync

Documentation is in sync.

@github-actions
Copy link
Copy Markdown

🤖 AI Agent: test-generator — View details

Test coverage looks good. No gaps identified.

@github-actions
Copy link
Copy Markdown

🤖 AI Agent: breaking-change-detector — View details

No breaking changes detected.

@github-actions
Copy link
Copy Markdown

🤖 AI Agent: code-reviewer — View details

TL;DR: 0 blockers, 1 warning. The PR resolves the expired license issue effectively, but the gitleaks CLI version pinning could use improvement.

# Sev Issue Where
1 Warn Gitleaks CLI version pinning lacks SHA256 .github/workflows/secret-scanning.yml

Action items: None.

Warnings:

# Issue Fine as follow-up PRs
1 Gitleaks CLI version pinning lacks SHA256 Yes

@github-actions
Copy link
Copy Markdown

PR Review Summary

Check Status Details
🔍 Code Review ⚠️ Warning See details
🛡️ Security Scan ✅ Passed No issues found
🔄 Breaking Changes ✅ Passed No issues found
📝 Docs Sync ✅ Passed No issues found
🧪 Test Coverage ✅ Completed Analysis complete

Verdict: ⚠️ Ready for human review

@imran-siddique imran-siddique merged commit 4d8e225 into microsoft:main May 14, 2026
72 checks passed
@imran-siddique imran-siddique deleted the fix/gitleaks-license branch May 14, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts/ci/cd size/S Small PR (< 50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant