Skip to content

chore: stop forwarding the deprecated GITLEAKS_LICENSE secret - #91

Merged
CybotTM merged 1 commit into
mainfrom
chore/drop-gitleaks-license-forwarding
Aug 2, 2026
Merged

chore: stop forwarding the deprecated GITLEAKS_LICENSE secret#91
CybotTM merged 1 commit into
mainfrom
chore/drop-gitleaks-license-forwarding

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 2, 2026

Copy link
Copy Markdown
Member

Removes the GITLEAKS_LICENSE mapping this workflow passes into the shared secret-scanning reusable.

Secret scanning runs on betterleaks, which is OSS and needs no licence. The reusable declares GITLEAKS_LICENSE purely for backwards compatibility and never reads it — and the org-level secret has since been deleted, so what this workflow forwards today is an empty string into an input that ignores it.

Only the mapping line is removed. The enclosing secrets: key is dropped only where nothing else remained under it; any other secret in the same block is untouched.

Part of finishing the betterleaks/zizmor rollout (netresearch/.github#327, #330). Once no caller forwards the secret, the compatibility declarations in the reusables can be removed too.

Secret scanning runs on betterleaks, which is OSS and needs no license. The
shared gitleaks reusable declares GITLEAKS_LICENSE only for backwards
compatibility and never reads it, and the org-level secret has been deleted, so
this workflow was handing an empty value to an input that ignores it.

Only the mapping line is removed; the enclosing `secrets:` key goes with it
only when nothing else was left under it. Other secrets in the same block are
untouched.

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
Copilot AI review requested due to automatic review settings August 2, 2026 11:45
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes forwarding of the deprecated GITLEAKS_LICENSE secret from the Security workflow when calling the shared secret-scanning reusable workflow, aligning the caller with the current betterleaks-based implementation (which doesn’t need a license).

Changes:

  • Removed the secrets: block that forwarded GITLEAKS_LICENSE into the reusable gitleaks.yml workflow.
  • Simplified the gitleaks job configuration by omitting an now-unneeded secret mapping.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@CybotTM
CybotTM merged commit f9b35a2 into main Aug 2, 2026
12 checks passed
@CybotTM
CybotTM deleted the chore/drop-gitleaks-license-forwarding branch August 2, 2026 11:55
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