securityscorecards

package
v0.80.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(httpClient *http.Client) Client

func (*Client) GetResult

func (c *Client) GetResult(ctx context.Context, repoPath string) (*ScorecardResult, error)

GetResult retrieves a ScorecardResult for a given repository.

`repoPath` should be the URL to a repository with no scheme in it, for instance `https://gitlab.com/gitlab-org/sbom/generator` would become `gitlab.com/gitlab-org/sbom/generator`

type ScorecardCheck

type ScorecardCheck struct {
	Name  string `json:"name"`
	Score int    `json:"score"`
}

type ScorecardResult

type ScorecardResult struct {
	Score  float32          `json:"score"`
	Checks []ScorecardCheck `json:"checks"`
}

Jump to

Keyboard shortcuts

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