Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 RunSync

func RunSync(ctx context.Context, dbPath, org, repo string, out io.Writer) error

RunSync keeps progress separate from callers that only need the summary.

func RunSyncWithProgress

func RunSyncWithProgress(ctx context.Context, dbPath, org, repo string, out, progressOut io.Writer) error

func RunWeb

func RunWeb(ctx context.Context, dbPath, addr, version string) error

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

type FindingsOptions struct {
	Levels, Scanners, Refs []string
	Details, JSON          bool
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL