forked from mirrors/kingfisher
Added rule for Replicate
This commit is contained in:
parent
9dc46103ed
commit
8dee433ef6
2 changed files with 40 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [1.22.0]
|
||||
- Added rules for Google Gemini AI, Cohere, Stability.ai
|
||||
- Added rules for Google Gemini AI, Cohere, Stability.ai, Replicate
|
||||
|
||||
## [1.21.0]
|
||||
- Improved Azure Storage rule
|
||||
|
|
|
|||
39
data/rules/replicate.yml
Normal file
39
data/rules/replicate.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
rules:
|
||||
- name: Replicate API Token
|
||||
id: kingfisher.replicate.1
|
||||
pattern: | #
|
||||
(?x)
|
||||
\b
|
||||
(
|
||||
r8_
|
||||
[A-Za-z0-9]{37}
|
||||
)
|
||||
\b
|
||||
min_entropy: 3.0
|
||||
confidence: medium
|
||||
examples:
|
||||
- r8_WesXNvqsCpq7r1gpQABpB3NJvdR21nb2s7HVy
|
||||
- r8_Lvn3Tsrs8H2wCYSEPDiUfyePqWpBOWi0vQTtN
|
||||
- r8_XOpqpi4q9UADwsgrbEjCpT9p1cDldUu3t1D8R
|
||||
- r8_ap8Mo5iTbW01FHJtElPrBUqf7fjz1r40EVrJu
|
||||
references:
|
||||
- https://replicate.com/docs/reference/http
|
||||
validation:
|
||||
type: Http
|
||||
content:
|
||||
request:
|
||||
method: GET
|
||||
url: https://api.replicate.com/v1/account
|
||||
headers:
|
||||
Authorization: Bearer {{ TOKEN }}
|
||||
response_matcher:
|
||||
- report_response: true
|
||||
- type: StatusMatch
|
||||
status: [200]
|
||||
- type: JsonValid
|
||||
- type: WordMatch
|
||||
match_all_words: true
|
||||
words:
|
||||
- '"type"'
|
||||
- '"username"'
|
||||
- '"name"'
|
||||
Loading…
Add table
Add a link
Reference in a new issue