checks

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package checks defines all Scorecard checks.

Index

Constants

View Source
const CheckBinaryArtifacts string = "Binary-Artifacts"

CheckBinaryArtifacts is the exported name for Binary-Artifacts check.

View Source
const (
	// CheckBranchProtection is the exported name for Branch-Protected check.
	CheckBranchProtection = "Branch-Protection"
)
View Source
const (
	// CheckCIIBestPractices is the registered name for CIIBestPractices.
	CheckCIIBestPractices = "CII-Best-Practices"
)
View Source
const (
	// CheckCITests is the registered name for CITests.
	CheckCITests = "CI-Tests"
)
View Source
const CheckCodeReview = "Code-Review"

CheckCodeReview is the registered name for DoesCodeReview.

View Source
const (

	// CheckContributors is the registered name for Contributors.
	CheckContributors = "Contributors"
)
View Source
const CheckDangerousWorkflow = "Dangerous-Workflow"

CheckDangerousWorkflow is the exported name for Dangerous-Workflow check.

View Source
const CheckDependencyUpdateTool = "Dependency-Update-Tool"

CheckDependencyUpdateTool is the exported name for Automatic-Depdendency-Update.

View Source
const CheckFuzzing = "Fuzzing"

CheckFuzzing is the registered name for Fuzzing.

View Source
const (
	// CheckMaintained is the exported check name for Maintained.
	CheckMaintained = "Maintained"
)
View Source
const CheckPackaging = "Packaging"

CheckPackaging is the registered name for Packaging.

View Source
const CheckPinnedDependencies = "Pinned-Dependencies"

CheckPinnedDependencies is the registered name for FrozenDeps.

View Source
const CheckSAST = "SAST"

CheckSAST is the registered name for SAST.

View Source
const CheckSecurityPolicy = "Security-Policy"

CheckSecurityPolicy is the registred name for SecurityPolicy.

View Source
const (
	// CheckSignedReleases is the registered name for SignedReleases.
	CheckSignedReleases = "Signed-Releases"
)
View Source
const CheckTokenPermissions = "Token-Permissions"

CheckTokenPermissions is the exported name for Token-Permissions check.

View Source
const (
	// CheckVulnerabilities is the registered name for the OSV check.
	CheckVulnerabilities = "Vulnerabilities"
)

Variables

AllChecks is the list of all security checks that will be run.

Functions

func BinaryArtifacts

func BinaryArtifacts(c *checker.CheckRequest) checker.CheckResult

BinaryArtifacts will check the repository contains binary artifacts.

func BranchProtection

func BranchProtection(c *checker.CheckRequest) checker.CheckResult

BranchProtection runs Branch-Protection check.

func CIIBestPractices

func CIIBestPractices(c *checker.CheckRequest) checker.CheckResult

CIIBestPractices runs CII-Best-Practices check.

func CITests

CITests runs CI-Tests check.

func Contributors

func Contributors(c *checker.CheckRequest) checker.CheckResult

Contributors run Contributors check.

func DangerousWorkflow added in v3.2.1

func DangerousWorkflow(c *checker.CheckRequest) checker.CheckResult

DangerousWorkflow runs Dangerous-Workflow check.

func DoesCodeReview

func DoesCodeReview(c *checker.CheckRequest) checker.CheckResult

DoesCodeReview attempts to determine whether a project requires review before code gets merged. It uses a set of heuristics: - Looking at the repo configuration to see if reviews are required. - Checking if most of the recent merged PRs were "Approved". - Looking for other well-known review labels.

func Fuzzing

Fuzzing runs Fuzzing check.

func HasUnfixedVulnerabilities

func HasUnfixedVulnerabilities(c *checker.CheckRequest) checker.CheckResult

HasUnfixedVulnerabilities runs Vulnerabilities check.

func IsMaintained

func IsMaintained(c *checker.CheckRequest) checker.CheckResult

IsMaintained runs Maintained check.

func Packaging

Packaging runs Packaging check.

func PinnedDependencies

func PinnedDependencies(c *checker.CheckRequest) checker.CheckResult

PinnedDependencies will check the repository if it contains frozen dependecies.

func SAST

SAST runs SAST check.

func SecurityPolicy

func SecurityPolicy(c *checker.CheckRequest) checker.CheckResult

SecurityPolicy runs Security-Policy check.

func SignedReleases

func SignedReleases(c *checker.CheckRequest) checker.CheckResult

SignedReleases runs Signed-Releases check.

func TokenPermissions

func TokenPermissions(c *checker.CheckRequest) checker.CheckResult

TokenPermissions runs Token-Permissions check.

func UsesDependencyUpdateTool

func UsesDependencyUpdateTool(c *checker.CheckRequest) checker.CheckResult

UsesDependencyUpdateTool will check the repository uses a dependency update tool.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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