Skip to content

Chore: [AEA-0000] - use gitleaks for secret scanning#689

Merged
anthony-nhs merged 1 commit intomainfrom
gitleaks
Apr 17, 2026
Merged

Chore: [AEA-0000] - use gitleaks for secret scanning#689
anthony-nhs merged 1 commit intomainfrom
gitleaks

Conversation

@anthony-nhs
Copy link
Copy Markdown
Contributor

use gitleaks for secret scanning

Copilot AI review requested due to automatic review settings April 17, 2026 10:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 updates the repository’s pre-commit secret scanning approach by replacing git-secrets with gitleaks, aligning local commit-time checks with a more modern secret scanner.

Changes:

  • Replace the local git-secrets pre-commit hook with a gitleaks hook.
  • Remove the .gitallowed allowlist file previously used for git-secrets.
  • Minor YAML formatting adjustments in .pre-commit-config.yaml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.pre-commit-config.yaml Swaps secret-scanning hook to gitleaks and adjusts some hook YAML formatting.
.gitallowed Removes the git-secrets allowlist file (no longer needed after switching scanners).

Comment thread .pre-commit-config.yaml
- -c
- "git-secrets --pre_commit_hook"
- "gitleaks git --pre-commit --redact --staged --verbose"
language: system
Comment thread .pre-commit-config.yaml
Comment on lines +92 to +93
description: gitleaks scans commits, commit messages, and --no-ff merges to
prevent adding secrets into your git repositories.
Comment thread .pre-commit-config.yaml
Comment on lines 94 to 98
entry: bash
args:
- -c
- "git-secrets --pre_commit_hook"
- "gitleaks git --pre-commit --redact --staged --verbose"
language: system
@sonarqubecloud
Copy link
Copy Markdown

@anthony-nhs anthony-nhs merged commit 39e2acd into main Apr 17, 2026
16 checks passed
@anthony-nhs anthony-nhs deleted the gitleaks branch April 17, 2026 10:59
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