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

[fix] Move detector initialization to DefaultDetectors function #3341

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

mcastorina
Copy link
Collaborator

Description:

Moves initialization out on NewEngine and into DefaultDetectors so all calls to it will be given a list of detectors that are ready to use.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@mcastorina mcastorina requested a review from a team as a code owner September 26, 2024 20:26
customizer.UseCloudEndpoint(true)
if cfg.CustomVerifiersOnly && len(urls) > 0 {
customizer.UseCloudEndpoint(false)
customizer.UseFoundEndpoints(false)
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure we want found endpoints off here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's a good question. We currently don't have controls to separate the configured cloud endpoint vs found endpoints though, so I defaulted to tying them together.

If a user specifies --custom-verifiers-only imo that means "only use the endpoints I specifically configured"

@mcastorina mcastorina merged commit 0328a19 into main Sep 26, 2024
12 checks passed
@mcastorina mcastorina deleted the fix-move-init-to-default-fn branch September 26, 2024 21:03
kashifkhan0771 pushed a commit to kashifkhan0771/trufflehog that referenced this pull request Oct 1, 2024
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.

2 participants