kingfisher/crates/kingfisher-rules/data/rules/coderabbit.yml

39 lines
1,015 B
YAML
Raw Normal View History

2026-01-15 22:15:59 -08:00
rules:
- name: CodeRabbit API Key
id: kingfisher.coderabbit.1
pattern: |
2026-03-09 20:11:58 -07:00
(?x)
2026-01-15 22:15:59 -08:00
\b
(
2026-03-09 20:11:58 -07:00
cr-[a-fA-F0-9]{58}
2026-01-15 22:15:59 -08:00
)
\b
pattern_requirements:
min_digits: 4
min_entropy: 3.5
confidence: medium
examples:
- "cr-33420bb12fddf6cde6fba5414df88b07f75b2258e30c956b95f2ddbb2d"
references:
- https://coderabbit.ai/
2026-02-10 19:24:19 -08:00
- https://docs.coderabbit.ai/api-reference/
2026-01-15 22:15:59 -08:00
validation:
type: Http
content:
request:
method: GET
url: "https://api.coderabbit.ai/v1/seats/"
headers:
accept: "application/json"
x-coderabbitai-api-key: "{{TOKEN}}"
response_matcher:
- report_response: true
- type: WordMatch
words:
- '"success"'
- '"errors"'
match_all_words: false
- type: WordMatch
negative: true
words:
- '"Invalid or inactive API key"'