Files
trufflehog/pkg/analyzer/analyzers/figma/endpoints.json
Nabeel AlamandKashif Khan b2ba219e24 [Feat] Added Figma (PAT) Analyzer (#3974)
* added figma analyzer

* fixed lint issue

* fixed lint issue (2)

* added endpoint config from json

* simplified scope extraction and endpoint configuration

* updated with lint issue fixes

---------

Co-authored-by: Kashif Khan <[email protected]>
2025-04-03 19:14:48 +05:00

32 lines
1.1 KiB
JSON

{
"files:read": {
"url": "https://api.figma.com/v1/me",
"method": "GET",
"expected_status_code_with_scope": 200,
"expected_status_code_without_scope": 403
},
"library_analytics:read": {
"url": "https://api.figma.com/v1/analytics/libraries/0/component/actions",
"method": "GET",
"expected_status_code_with_scope": 400,
"expected_status_code_without_scope": 403
},
"file_dev_resources:write": {
"url": "https://api.figma.com/v1/dev_resources",
"method": "POST",
"expected_status_code_with_scope": 400,
"expected_status_code_without_scope": 403
},
"file_variables:read": {
"url": "https://api.figma.com/v1/files/0/variables/published",
"method": "GET",
"expected_status_code_with_scope": 404,
"expected_status_code_without_scope": 403
},
"webhooks:write": {
"url": "https://api.figma.com/v2/webhooks",
"method": "POST",
"expected_status_code_with_scope": 400,
"expected_status_code_without_scope": 403
}
}