gitleaks / gitleaks/gitleaks

Rules priority

Open
#1,997 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
29.3k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

I would prefer if the most specific rules is in front.

For example that the string **sonar.token || 'sqa_4qa1=5gxcb4k_qc_kv5-syy7xog579-knivxn-zl'**
Would match **sonar-api-token** instead of **generic-api-key**
I think this could be done by either:
- moving general rules to the bottom of the toml config.
- add new priority field

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.