scorecard

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrArtifactNodeTypeMismatch = fmt.Errorf("rootComponent type is not *source.SourceNode")

Functions

func NewScorecardCertifier

func NewScorecardCertifier(sc Scorecard) (certifier.Certifier, error)

NewScorecardCertifier initializes the scorecard certifier. It checks if the GITHUB_AUTH_TOKEN is set in the environment. If it is not, it returns an error.w The token is used to access the GitHub API, https://github.com/ossf/scorecard#authentication.

Types

type Scorecard

type Scorecard interface {
	GetScore(repoName, commitSHA, tag string) (*sc.ScorecardResult, error)
}

Scorecard is an interface for the scorecard library. This can also be mocked for testing.

func NewScorecardRunner

func NewScorecardRunner(ctx context.Context) (Scorecard, error)

Jump to

Keyboard shortcuts

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