Skip to content

Fix gitleaks pre-commit configuration#355

Merged
Ludy87 merged 1 commit into
mainfrom
codex/fix-gitleaks-detection-error
Jun 9, 2026
Merged

Fix gitleaks pre-commit configuration#355
Ludy87 merged 1 commit into
mainfrom
codex/fix-gitleaks-detection-error

Conversation

@Ludy87

@Ludy87 Ludy87 commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Motivation

  • The gitleaks pre-commit hook was configured with custom args (including the unsupported --no-git flag and a .gitleaks.toml reference) which could cause the hook to fail before scanning; switching to the upstream defaults prevents that failure.

Description

  • Removed the custom args block from the gitleaks entry in .pre-commit-config.yaml so the hook uses the upstream v8.30.0 defaults.

Testing

  • Ran git diff --check and a Python assertion that inspects .pre-commit-config.yaml to confirm the gitleaks hook block contains only - id: gitleaks and does not include --no-git or a --config reference (these checks passed); attempting to install/run pre-commit in this environment failed due to network/PyPI access restrictions, so an actual pre-commit run gitleaks was not executed.

Codex Task

@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@Ludy87 Ludy87 merged commit f30f8a3 into main Jun 9, 2026
6 of 11 checks passed
@Ludy87 Ludy87 deleted the codex/fix-gitleaks-detection-error branch June 9, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant