Skip to content
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 parsehub scanner #403

Merged
merged 10 commits into from
Apr 21, 2022
Merged

Added parsehub scanner #403

merged 10 commits into from
Apr 21, 2022

Conversation

roxanne-tampus
Copy link
Contributor

No description provided.

Copy link
Collaborator

@ahrav ahrav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit, otherwise lgtm

}

if verify {
req, err := http.NewRequestWithContext(ctx, "GET", "https://www.parsehub.com/api/v2/projects?api_key="+resMatch+"&offset=0&limit=20&include_options=1", nil)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: prefer fmt.Sprintf("https://www.parsehub.com/api/v2/projects?api_key=%s&limit=1", resMatch) and additionally you can also likely remove the additional query params to the request to make it simpler. I would potentially also just change the limit to 1 to also potentially reduce the request latency and size.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ahrav! Pushed the enhancement.

@dustin-decker dustin-decker merged commit 6c1b3c6 into trufflesecurity:main Apr 21, 2022
bill-rich pushed a commit that referenced this pull request May 2, 2022
* added new protos

* added new detectors

* added parsehub scanner

* enhanced enpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants