Skip to content

feat: improve regex to detect Sonar tokens with prefixes#1931

Merged
zricethezav merged 1 commit into
gitleaks:masterfrom
brunobastosg:add-sonar-optional-token-prefixes
Aug 14, 2025
Merged

feat: improve regex to detect Sonar tokens with prefixes#1931
zricethezav merged 1 commit into
gitleaks:masterfrom
brunobastosg:add-sonar-optional-token-prefixes

Conversation

@brunobastosg
Copy link
Copy Markdown
Contributor

@brunobastosg brunobastosg commented Aug 14, 2025

Description:

Since Sonar 9.5, a prefix was added to the tokens. Gitleaks isn't currently detecting those tokens with prefixes (sqa_, sqp_ and squ_).

See: https://www.sonarsource.com/products/sonarqube/whats-new/sonarqube-9-5/

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

@zricethezav
Copy link
Copy Markdown
Collaborator

Thanks for the PR! lgtm

@zricethezav zricethezav merged commit a82bc53 into gitleaks:master Aug 14, 2025
2 checks passed
@brunobastosg brunobastosg deleted the add-sonar-optional-token-prefixes branch August 20, 2025 17:47
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