Skip to content

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

Merged
anthony-nhs merged 3 commits intomainfrom
gitleaks
Apr 21, 2026
Merged

Chore: [AEA-0000] - use gitleaks for secret scanning#2973
anthony-nhs merged 3 commits 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 09:39
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

Switches the repository’s local secret-scanning pre-commit hook from git-secrets to gitleaks, and updates supporting security-scanning configuration.

Changes:

  • Replace the existing pre-commit secret scanning hook with a gitleaks-based hook.
  • Add a .gitleaksignore file to suppress known findings.
  • Extend .grype.yaml ignores for an additional GHSA.

Reviewed changes

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

File Description
.pre-commit-config.yaml Replaces the secret-scanning pre-commit hook command to run gitleaks
.grype.yaml Adds an additional vulnerability ignore entry
.gitleaksignore Introduces gitleaks ignore fingerprints for known findings
.gitallowed Removes the previous git-secrets allowlist file

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
description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
- id: gitleaks
name: Git Leaks
description: gitleaks scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
@sonarqubecloud
Copy link
Copy Markdown

@anthony-nhs anthony-nhs merged commit 499cd67 into main Apr 21, 2026
17 checks passed
@anthony-nhs anthony-nhs deleted the gitleaks branch April 21, 2026 09:44
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.

3 participants