forked from mirrors/kingfisher
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:
parent
2bf9e54ad9
commit
e73f2f5986
1 changed files with 4 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue