MCPcopy
hub / github.com/ossf/scorecard / CreateGithubRepoClient

Function CreateGithubRepoClient

clients/githubrepo/client.go:435–439  ·  view source on GitHub ↗

CreateGithubRepoClient returns a Client which implements RepoClient interface.

(ctx context.Context, logger *log.Logger)

Source from the content-addressed store, hash-verified

433
434// CreateGithubRepoClient returns a Client which implements RepoClient interface.
435func CreateGithubRepoClient(ctx context.Context, logger *log.Logger) clients.RepoClient {
436 // Use our custom roundtripper
437 rt := roundtripper.NewTransport(ctx, logger)
438 return CreateGithubRepoClientWithTransport(ctx, rt)
439}
440
441// CreateOssFuzzRepoClient returns a RepoClient implementation
442// initialized to `google/oss-fuzz` GitHub repository.

Callers 15

newScorecardWorkerFunction · 0.92
NewFunction · 0.92
fuzzing_test.goFile · 0.92
ci_tests_test.goFile · 0.92
sast_test.goFile · 0.92

Calls 2

NewTransportFunction · 0.92

Tested by

no test coverage detected