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

Struct Client

clients/githubrepo/client.go:47–68  ·  view source on GitHub ↗

Client is GitHub-specific implementation of RepoClient.

Source from the content-addressed store, hash-verified

45
46// Client is GitHub-specific implementation of RepoClient.
47type Client struct {
48 repourl *Repo
49 repo *github.Repository
50 repoClient *github.Client
51 graphClient *graphqlHandler
52 contributors *contributorsHandler
53 branches *branchesHandler
54 releases *releasesHandler
55 workflows *workflowsHandler
56 checkruns *checkrunsHandler
57 statuses *statusesHandler
58 search *searchHandler
59 searchCommits *searchCommitsHandler
60 webhook *webhookHandler
61 languages *languagesHandler
62 licenses *licensesHandler
63 git *gitfile.Handler
64 ctx context.Context
65 tarball tarballHandler
66 commitDepth int
67 gitMode bool
68}
69
70// WithFileModeGit configures the repo client to fetch files using git.
71func WithFileModeGit() Option {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected