forked from mirrors/kingfisher
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
rules:
|
|
- name: Webflow API Token
|
|
id: kingfisher.webflow.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
webflow
|
|
(?:.|[\n\r]){0,32}?
|
|
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN|API)
|
|
(?:.|[\n\r]){0,32}?
|
|
\b
|
|
(
|
|
(?:[A-Za-z0-9]{32}|[A-Za-z0-9]{36})
|
|
)
|
|
\b
|
|
min_entropy: 3.5
|
|
confidence: medium
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
examples:
|
|
- WEBFLOW_API_TOKEN=abcdef1234567890abcdef1234567890
|
|
- webflow_token = "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8"
|
|
references:
|
|
- https://developers.webflow.com/data/reference/authentication
|
|
- https://developers.webflow.com/data/reference/rest-introduction/quick-start
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.webflow.com/v2/sites
|
|
headers:
|
|
Authorization: "Bearer {{ TOKEN }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: JsonValid
|