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

[THOG-270] Fix scanning crash for git source without TLS. #497

Merged
merged 1 commit into from
May 2, 2022

Conversation

ahrav
Copy link
Collaborator

@ahrav ahrav commented May 2, 2022

What?

Fix crash when trying to scan a git source without TLS/SSL.

Why?

Should be able to scan a source without TLS/SSL.

How?

Update the switch case statement to include http as a case in addition to https

Testing?

Updated the unit tests to cover the new scenario.

Screenshots (optional)

n/a

Anything Else?

@ahrav ahrav requested a review from a team May 2, 2022 01:45
}{
{
uri: "https://github.com/dustin-decker/secretsandstuff.git",
path: "/var/folders/1m/m4kl5q2102bfr4k4566nmf800000gn/T/trufflehog2276311773",
Copy link
Contributor

@dustin-decker dustin-decker May 2, 2022

Choose a reason for hiding this comment

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

See the comments in the other MR, we shouldn't expect a particular path here because it's OS dependent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

great point.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

worth noting this can probably made a bit better with some more thought, but this should also work for the time being as the concept is tested I think well enough.

@ahrav ahrav requested a review from dustin-decker May 2, 2022 17:19
@dustin-decker
Copy link
Contributor

Merge conflict now

@ahrav ahrav force-pushed the THOG-270-fix-scanning-crash-git-source-no-tls branch from af7bbf5 to c0317e2 Compare May 2, 2022 22:03
@ahrav ahrav merged commit 1bd5e9d into main May 2, 2022
@ahrav ahrav deleted the THOG-270-fix-scanning-crash-git-source-no-tls branch May 2, 2022 22:04
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