-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Added ZohoCRM detector #3516
Feat: Added ZohoCRM detector #3516
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nabeelalam Thank you for new addition in Detectors. Along with some comments, You need to also add new detector in Defaults.go otherwise engine won't load it.
pkg/detectors/zohocrm/zohocrm.go
Outdated
Details map[string]interface{} `json:"details"` | ||
Message string `json:"message"` | ||
Status string `json:"status"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove them as these 3 fields are not being used anywhere ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I had mapped the output, in order to add extra data in the response but it felt unnecessary. I've removed this fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM! Rebasing is required.
pkg/detectors/zohocrm/zohocrm.go
Outdated
} | ||
|
||
func (s Scanner) Description() string { | ||
return "Zohocrm is a blockchain development platform that provides a suite of tools and services for building and scaling decentralized applications. Zohocrm API keys can be used to access these services." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is correct?
Description:
This PR introduces a new detector for Zoho CRM API access tokens.
For the integration test, the active
ZOHOCRM
access token only has a 60 minute validity before becoming inactive, so an active token would have to be generated and added to the Secrets Manager for these tests to pass.Access tokens can be generated by following the following steps in the Zoho documentation:
https://www.zoho.com/accounts/protocol/oauth/self-client/authorization-code-flow.html
Checklist:
make test-community
)?make lint
this requires golangci-lint)?