Files
trufflehog/pkg/analyzer/analyzers/figma/models.go
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

21 lines
535 B
Go

package figma
type userInfo struct {
ID string `json:"id"`
Handle string `json:"handle"`
ImgURL string `json:"img_url"`
Email string `json:"email"`
}
type secretInfo struct {
UserInfo userInfo
Scopes map[Scope]ScopeStatus
}
type endpoint struct {
URL string `json:"url"`
Method string `json:"method"`
ExpectedStatusCodeWithScope int `json:"expected_status_code_with_scope"`
ExpectedStatusCodeWithoutScope int `json:"expected_status_code_without_scope"`
}