forked from mirrors/kingfisher
performance improvements and rule improvements
This commit is contained in:
parent
a27f90d619
commit
33bb1cd4a1
2 changed files with 6 additions and 9 deletions
|
|
@ -11,10 +11,9 @@ rules:
|
|||
pattern_requirements:
|
||||
min_digits: 2
|
||||
min_entropy: 3.5
|
||||
confidence: high
|
||||
categories: [api, key]
|
||||
confidence: medium
|
||||
examples:
|
||||
- 'TELNYX_API_KEY=KEYabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRS'
|
||||
- 'TELNYX_API_KEY=KEY017D98C041711C2B8B6F5A2E50702659_hwntpZaC4XD1OEQEaKWydG'
|
||||
validation:
|
||||
type: Http
|
||||
content:
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ rules:
|
|||
\b
|
||||
(?i:todoist)
|
||||
(?:.|[\n\r]){0,32}?
|
||||
(?i:TOKEN|API)
|
||||
(?:.|[\n\r]){0,32}?
|
||||
\b
|
||||
(
|
||||
[0-9a-f]{40}
|
||||
|
|
@ -18,20 +16,20 @@ rules:
|
|||
min_entropy: 3.5
|
||||
confidence: medium
|
||||
examples:
|
||||
- 'TODOIST_API_TOKEN="0123456789abcdef0123456789abcdef01234567"'
|
||||
- 'TODOIST_API_TOKEN="9ee0e268956ee8440fd88cf1a54665f01fcfcdf5"'
|
||||
- |
|
||||
todoist_token = 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0'
|
||||
todoist_token = '6c387dbc97170767f2e80334a5e822895adf6d7b'
|
||||
negative_examples:
|
||||
- 'TODOIST_URL="https://api.todoist.com"'
|
||||
references:
|
||||
- https://developer.todoist.com/rest/v2/#overview
|
||||
- https://developer.todoist.com/api/v1/
|
||||
- https://developer.todoist.com/guides/#developing-with-todoist
|
||||
validation:
|
||||
type: Http
|
||||
content:
|
||||
request:
|
||||
method: GET
|
||||
url: https://api.todoist.com/rest/v2/projects
|
||||
url: https://api.todoist.com/api/v1/projects
|
||||
headers:
|
||||
Authorization: 'Bearer {{ TOKEN }}'
|
||||
response_matcher:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue