trufflehog icon indicating copy to clipboard operation
trufflehog copied to clipboard

[GitHub] Add a GraphQL client to the connector

Open rgmz opened this issue 9 months ago • 5 comments

Description:

This introduces a latent GraphQL client without making any functional changes. The GraphQL API is required for certain features (e.g., #1906), and it is already being manually called in at least once place:

https://github.com/trufflesecurity/trufflehog/blob/6d1c59f018be0ea3b37aec7fc4b12815c91ab69a/pkg/sources/github_experimental/object_discovery.go#L429-L432

shurcooL/githubv4 is the library recommended by the authors of google/go-github.

Checklist:

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

rgmz avatar Jan 11 '25 15:01 rgmz