{"modulePath":"github.com/CompassSecurity/pipeleek","version":"v1.5.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package scan\n\n## Functions\n\n```go\nfunc DeleteHighestXKeys(m map[int64]struct{}, nrKeys int) map[int64]struct{}\n```\nDeleteHighestXKeys removes the highest nrKeys keys from the map.\n\n```go\nfunc SetupClient(accessToken string, baseURL string) *github.Client\n```\nSetupClient creates and configures a GitHub API client with rate limiting support.\n\n```go\nfunc ValidateRepoFormat(repo string) (owner, name string, valid bool)\n```\nValidateRepoFormat validates the format of a repository string. Returns owner, name and whether the format is valid.\n\n## Types\n\n```go\ntype ScanOptions struct {\n\tAccessToken         string\n\tConfidenceFilter    []string\n\tMaxScanGoRoutines   int\n\tSecretsVerification bool\n\tMaxWorkflows        int\n\tOrganization        string\n\tOwned               bool\n\tUser                string\n\tPublic              bool\n\tSearchQuery         string\n\tArtifacts           bool\n\tGitHubURL           string\n\tRepo                string\n\tMaxArtifactSize     int64\n\tHitTimeout          time.Duration\n\tContext             context.Context\n\tClient              *github.Client\n\tHttpClient          *resty.Client\n}\n```\nScanOptions contains configuration options for GitHub scanning operations.\n\n```go\nfunc InitializeOptions(accessToken, gitHubURL, repo, organization, user, searchQuery, maxArtifactSizeStr string,\n\towned, public, artifacts, secretsVerification bool,\n\tmaxWorkflows, maxScanGoRoutines int, confidenceFilter []string, hitTimeout time.Duration) (ScanOptions, error)\n```\nInitializeOptions prepares scan options from CLI parameters.\n\n```go\ntype Scanner interface {\n\tpkgscanner.BaseScanner\n\tGetRateLimitStatus() *zerolog.Event\n}\n```\n\n```go\nfunc NewScanner(opts ScanOptions) Scanner\n```\n\n","path":"github.com/CompassSecurity/pipeleek/pkg/github/scan","name":"scan","synopsis":"","isRedistributable":true}
