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

updated and fixed typeform detectors #3769

Merged

Conversation

kashifkhan0771
Copy link
Contributor

@kashifkhan0771 kashifkhan0771 commented Dec 12, 2024

Description:

This PR improve overall logic of TypeForm detectors and fixes it's integration test cases.
Screenshot from 2024-12-12 16-21-36

Checklist:

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

@kashifkhan0771 kashifkhan0771 requested a review from a team as a code owner December 12, 2024 11:26
@@ -86,40 +89,6 @@ func TestTypeform_FromChunk(t *testing.T) {
wantErr: false,
wantVerificationErr: false,
},
{
name: "found, would be verified if not for timeout",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Even with 1 Microsecond timeout this test case was failing with no error 😄 (🥲) So I removed them.

@kashifkhan0771 kashifkhan0771 force-pushed the update/typeform-detectors branch from c5b0d9d to ec892be Compare December 12, 2024 11:39
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.

Single non-blocking comment, but otherwise LGTM! Thanks for getting this cleaned up. ❤️

pkg/detectors/typeform/v2/typeform_integration_test.go Outdated Show resolved Hide resolved
@kashifkhan0771 kashifkhan0771 force-pushed the update/typeform-detectors branch from 3fe6f2b to d4cc844 Compare December 12, 2024 15:55
@zricethezav zricethezav merged commit 6480123 into trufflesecurity:main Dec 12, 2024
13 checks passed
rgmz pushed a commit to rgmz/trufflehog that referenced this pull request Dec 12, 2024
* updated and fixed typeform detectors

* fixed linter issue

* added tags back
@kashifkhan0771 kashifkhan0771 deleted the update/typeform-detectors branch December 13, 2024 06:11
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.

3 participants