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 onfleet api key detector #2375

Merged
merged 3 commits into from
Apr 21, 2024
Merged

Conversation

ankushgoel27
Copy link
Contributor

Description:

This PR adds the onfleet api key detector.

https://docs.onfleet.com/reference/introduction

onfleet

Checklist:

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

@ankushgoel27 ankushgoel27 requested a review from a team as a code owner February 4, 2024 05:58
@ankushgoel27
Copy link
Contributor Author

may i know why this PR was not added

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.

Hey @ankushgoel27 sorry for the delayed review, I think we might've just missed this PR. I've added a test credential so the test suite passes.
Thanks again for the contribution, we really appreciate it. Apologies again for the delayed review.

}

func verifyMatch(ctx context.Context, client *http.Client, token string) (bool, map[string]string, error) {
req, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://onfleet.com/api/v2/organization", nil)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hope you don't mind but I updated this endpoint to use GET organization. docs

@ahrav ahrav merged commit 3fa86a1 into trufflesecurity:main Apr 21, 2024
11 of 12 checks passed
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