Documentation
¶
Index ¶
- func RunFindings(ctx context.Context, dbPath, repository string, opts FindingsOptions, ...) error
- func RunSync(ctx context.Context, dbPath, org, repo string, out io.Writer) error
- func RunSyncWithProgress(ctx context.Context, dbPath, org, repo string, out, progressOut io.Writer) error
- func RunWeb(ctx context.Context, dbPath, addr, version string) error
- type Finding
- type FindingsOptions
- type FindingsReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunFindings ¶
func RunFindings(ctx context.Context, dbPath, repository string, opts FindingsOptions, out io.Writer) error
RunFindings reads the same current open alerts as the dashboard. It does not fetch GitHub data or infer scan coverage from an empty result.
func RunSyncWithProgress ¶
Types ¶
type Finding ¶
type Finding struct {
Number int64 `json:"number"`
Priority string `json:"priority"`
ReportedSeverity string `json:"reported_severity"`
SeveritySource string `json:"severity_source"`
Scanner string `json:"scanner"`
ScannerVersion string `json:"scanner_version"`
ScannerGUID string `json:"scanner_guid"`
RuleID string `json:"rule_id"`
RuleName string `json:"rule_name"`
RuleDescription string `json:"rule_description"`
Tags []string `json:"tags"`
Message string `json:"message"`
Path string `json:"path"`
StartLine int `json:"start_line"`
EndLine int `json:"end_line"`
StartColumn int `json:"start_column"`
EndColumn int `json:"end_column"`
Ref string `json:"ref"`
CommitSHA string `json:"commit_sha"`
AnalysisKey string `json:"analysis_key"`
Environment string `json:"environment"`
Category string `json:"category"`
URL string `json:"url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type FindingsOptions ¶
func (FindingsOptions) Validate ¶
func (o FindingsOptions) Validate() error
type FindingsReport ¶
type FindingsReport struct {
Repository string `json:"repository"`
RepositoryURL string `json:"repository_url"`
RepositoryCachedAt time.Time `json:"repository_cached_at"`
TotalOpen int `json:"total_open"`
Matching int `json:"matching"`
ByLevel map[string]int `json:"by_level"`
ByScanner map[string]int `json:"by_scanner"`
Findings []Finding `json:"findings"`
}
Click to show internal directories.
Click to hide internal directories.