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

Sourcegraph Analyzer Error #3873

Closed
joeleonjr opened this issue Feb 5, 2025 · 0 comments · Fixed by #3877
Closed

Sourcegraph Analyzer Error #3873

joeleonjr opened this issue Feb 5, 2025 · 0 comments · Fixed by #3877
Assignees
Labels

Comments

@joeleonjr
Copy link
Contributor

Trace Output

2025/02/05 10:18:02 RoundTripper returned a response & error; ignoring response
[x] Error: Post "https://sourcegraph.com/.api/graphql": non-safe request returned success

Expected Behavior

Sourcegraph Analyzer should output user info and permissions.

Actual Behavior

The Analyzer Roundtripper saw that we sent a POST request and it returned a 200 and threw an error. The problem is the Sourcegraph Analyzer uses Sourcegraph's GraphQL service, which requires a POST request (even for simple GET like requests). So this doesn't seem to be working at all.

Steps to Reproduce

  1. Log into sourcegraph.
  2. Click on Settings > Access Tokens.
  3. Create an access token.
  4. Run trufflehog analyze sourcegraph and input the key.
@joeleonjr joeleonjr added the bug label Feb 5, 2025
@kashifkhan0771 kashifkhan0771 linked a pull request Feb 6, 2025 that will close this issue
2 tasks
@kashifkhan0771 kashifkhan0771 self-assigned this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants