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

cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package cmd implements the CLI commands for graphize-appsec.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command.

Types

type VulnScanOutput

type VulnScanOutput struct {
	Matches []struct {
		Vulnerability struct {
			ID          string `json:"id"`
			Severity    string `json:"severity"`
			Description string `json:"description"`
			Fix         struct {
				Versions []string `json:"versions"`
			} `json:"fix"`
			URLs []string `json:"urls"`
			CVSS []struct {
				Score float64 `json:"score"`
			} `json:"cvss"`
		} `json:"vulnerability"`
		Artifact struct {
			Name    string `json:"name"`
			Version string `json:"version"`
			PURL    string `json:"purl"`
		} `json:"artifact"`
	} `json:"matches"`
	// Simple format fallback
	Vulnerabilities []VulnScanResult `json:"vulnerabilities,omitempty"`
}

VulnScanOutput represents the output from vulnerability scanners.

type VulnScanResult

type VulnScanResult struct {
	ID              string   `json:"id"`
	Severity        string   `json:"severity"`
	Package         string   `json:"package"`
	Version         string   `json:"version"`
	FixedVersion    string   `json:"fixed_version,omitempty"`
	CVSS            float64  `json:"cvss,omitempty"`
	EPSSScore       float64  `json:"epss_score,omitempty"`
	Description     string   `json:"description,omitempty"`
	References      []string `json:"references,omitempty"`
	AffectedPackage string   `json:"affected_package,omitempty"`
}

VulnScanResult represents a vulnerability from a scanner (grype/trivy format).

Jump to

Keyboard shortcuts

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