Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHighestXKeys ¶
DeleteHighestXKeys removes the highest nrKeys keys from the map.
func SetupClient ¶
SetupClient creates and configures a GitHub API client with rate limiting support.
func ValidateRepoFormat ¶
ValidateRepoFormat validates the format of a repository string. Returns owner, name and whether the format is valid.
Types ¶
type ScanOptions ¶
type ScanOptions struct {
AccessToken string
ConfidenceFilter []string
MaxScanGoRoutines int
TruffleHogVerification bool
MaxWorkflows int
Organization string
Owned bool
User string
Public bool
SearchQuery string
Artifacts bool
GitHubURL string
Repo string
MaxArtifactSize int64
HitTimeout time.Duration
Context context.Context
Client *github.Client
HttpClient *retryablehttp.Client
}
ScanOptions contains configuration options for GitHub scanning operations.
func InitializeOptions ¶
func InitializeOptions(accessToken, gitHubURL, repo, organization, user, searchQuery, maxArtifactSizeStr string, owned, public, artifacts, truffleHogVerification bool, maxWorkflows, maxScanGoRoutines int, confidenceFilter []string, hitTimeout time.Duration) (ScanOptions, error)
InitializeOptions prepares scan options from CLI parameters.
type Scanner ¶
type Scanner interface {
pkgscanner.BaseScanner
GetRateLimitStatus() *zerolog.Event
}
func NewScanner ¶
func NewScanner(opts ScanOptions) Scanner
Click to show internal directories.
Click to hide internal directories.