forked from mirrors/kingfisher
33 lines
813 B
YAML
33 lines
813 B
YAML
rules:
|
|
- name: Travis CI Token
|
|
id: kingfisher.travisci.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
travis
|
|
(?:.|[\\n\r]){0,16}?
|
|
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN)
|
|
(?:.|[\n\r]){0,16}?
|
|
\b
|
|
(
|
|
[A-Z-_0-9]{22}
|
|
)
|
|
\b
|
|
min_entropy: 3.0
|
|
confidence: medium
|
|
examples:
|
|
- "travis_token splendid21RANDOMCONTEN"
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.travis-ci.com/repos?limit=1
|
|
headers:
|
|
Authorization: token {{ TOKEN }}
|
|
Accept: application/vnd.travis-ci.3+json
|
|
Travis-API-Version: "3"
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|