ghsa

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisory

type Advisory struct {
	DatabaseId  int
	Id          string
	GhsaId      string
	References  []Reference
	Identifiers []Identifier
	Description string
	Origin      string
	PublishedAt string
	Severity    string
	Summary     string
	UpdatedAt   string
	WithdrawnAt string
	CVSS        GithubCVSS
}

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(client GithubClient) Config

func (Config) Update

func (c Config) Update() error

type FirstPatchedVersion

type FirstPatchedVersion struct {
	Identifier string
}

type GetVulnerabilitiesQuery

type GetVulnerabilitiesQuery struct {
	SecurityVulnerabilities `graphql:"securityVulnerabilities(ecosystem: $ecosystem, first: $total, after: $cursor)"`
}

type GitHubClient

type GitHubClient struct {
	ApiKey string
}

type GithubCVSS

type GithubCVSS struct {
	Score        float32
	VectorString string
}

type GithubClient

type GithubClient interface {
	Query(ctx context.Context, q interface{}, variables map[string]interface{}) error
}

type GithubSecurityAdvisory

type GithubSecurityAdvisory struct {
	Severity               string
	UpdatedAt              string
	Package                Package
	Advisory               Advisory
	FirstPatchedVersion    FirstPatchedVersion
	VulnerableVersionRange string
}

type GithubSecurityAdvisoryJson

type GithubSecurityAdvisoryJson struct {
	Severity  string
	UpdatedAt string
	Package   Package
	Advisory  Advisory
	Versions  []Version
}

type Identifier

type Identifier struct {
	Type  string
	Value string
}

type Package

type Package struct {
	Ecosystem string
	Name      string
}

type PageInfo

type PageInfo struct {
	EndCursor   githubql.String
	HasNextPage bool
}

type Reference

type Reference struct {
	Url string
}

type SecurityVulnerabilities

type SecurityVulnerabilities struct {
	Nodes    []GithubSecurityAdvisory
	PageInfo PageInfo
}

type Version

type Version struct {
	FirstPatchedVersion    FirstPatchedVersion
	VulnerableVersionRange string
}

Jump to

Keyboard shortcuts

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