-
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
Added flowdash scanner #406
Added flowdash scanner #406
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.
tiny suggestion otherwise lgtm 👍
pkg/detectors/flowdash/flowdash.go
Outdated
} | ||
|
||
if verify { | ||
req, err := http.NewRequestWithContext(ctx, "GET", "https://app.flowdash.com/api/v1/workflows", nil) |
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.
nit: maybe use https://app.flowdash.com/api/v1/workspace
as the endpoint vs workflows? The response object for workspace will generally always be a single item whereas for workflows i'm not certain on the resulting response objects size. Potentially a lot bigger if they are a large org and even moreso if their API doesn't support pagination. This way we lower the call's overhead and maybe reducing latency.
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.
Great! I just pushed the changes. Thanks @ahrav!
* added new protos * added new detectors * added flowdash scanner * updated the endpoint
No description provided.