fix(circleci): improve regex

Updated the regex pattern for CircleCI API token to allow a more flexible format.

Signed-off-by: Luke Young <bored-engineer@users.noreply.github.com>
This commit is contained in:
Luke Young 2026-01-30 14:52:37 -08:00 committed by GitHub
commit e73f2f5986
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,21 +2,11 @@ rules:
- name: CircleCI API Personal Access Token
id: kingfisher.circleci.1
pattern: |
(?xi)
(?x)
\b
(
CCIPAT_
[a-z0-9]{4}
[a-z]{5}
[a-z0-9]{3}
[0-9]{3}
[a-z]{2}
[A-Z]{2}
[0-9]{1}
[a-z]{1}
[a-z0-9]{1}
[0-9]{1}
[a-z]{1}
[a-zA-Z0-9]{22}
_
[a-z0-9]{40}
)
@ -27,6 +17,7 @@ rules:
confidence: medium
examples:
- CircleCI_PAT = "CCIPAT_lZyPAuThWn2G908ssDT0g33e_t7qh0r5hrvsqzmuraqzduq6qco5onxgrtcn7y2z4"
- CCIPAT_FERZRjTN451xnDCy1y9gWn_79fb6ca4d0e5f833612eee17de397a9dca0a9e9f
- |
export CIRCLECI_TOKEN=CCIPAT_lZyPAuThWn2G908ssDT0g33e_t7qh0r5hrvsqzmuraqzduq6qco5onxgrtcn7y2z4
references:
@ -85,4 +76,4 @@ rules:
- type: WordMatch
words:
- '"vcs_url"'
url: https://circleci.com/api/v1.1/projects
url: https://circleci.com/api/v1.1/projects