checks

package
v4.3.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 20 Imported by: 4

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 = "Branch-Protection"

CheckBranchProtection is the exported name for Branch-Protected check.

View Source
const CheckCIIBestPractices = "CII-Best-Practices"

CheckCIIBestPractices is the registered name for CIIBestPractices.

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 = "Contributors"

CheckContributors is the registered name for 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 CheckLicense = "License"

CheckLicense is the registered name for License.

View Source
const CheckMaintained = "Maintained"

CheckMaintained is the exported check name for 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 = "Signed-Releases"

CheckSignedReleases is the registered name for SignedReleases.

View Source
const (
	CheckTokenPermissions = "Token-Permissions"
)

CheckTokenPermissions is the exported name for Token-Permissions check.

View Source
const CheckVulnerabilities = "Vulnerabilities"

CheckVulnerabilities is the registered name for the OSV check.

View Source
const (
	// CheckWebHooks is the registered name for WebHooks.
	CheckWebHooks = "Webhooks"
)

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 the Branch-Protection check.

func CIIBestPractices

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

CIIBestPractices will check if the maintainers have a best practice badge.

func CITests

CITests runs CI-Tests check.

func CodeReview added in v4.1.0

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

CodeReview will check if the maintainers perform code review.

func Contributors

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

Contributors run Contributors check.

func DangerousWorkflow

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

DangerousWorkflow will check the repository contains Dangerous-Workflow.

func DependencyUpdateTool

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

DependencyUpdateTool checks if the repository uses a dependency update tool.

func Fuzzing

Fuzzing runs Fuzzing check.

func GetAll added in v4.2.0

func GetAll() checker.CheckNameToFnMap

GetAll returns the full list of checks, given any environment variable constraints. TODO(checks): Is this actually necessary given `AllChecks` exists?

func License added in v4.2.0

License runs License check.

func Maintained added in v4.2.0

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

Maintained 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 Vulnerabilities added in v4.1.0

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

Vulnerabilities runs Vulnerabilities check.

func WebHooks added in v4.2.0

WebHooks run Webhooks check.

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