mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
Previously, the rule matched for any long string containing e.g. ASIA, ACCA somewhere, as long as the next 16 chars were also uppercase letters. This change checks for word boundaries before and after the secret. Also the prefix (AKIA|ASIA|...) was moved from the non-capturing group into the secret matching group, since it is part of the token fix(aws-access-token): non-capture for prefix Review findings https://github.com/gitleaks/gitleaks/pull/1584/files#r1807793907