Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // All represents all the probes. All []ProbeImpl // SecurityPolicy is all the probes for the // SecurityPolicy check. SecurityPolicy = []ProbeImpl{ securityPolicyPresent.Run, securityPolicyContainsLinks.Run, securityPolicyContainsVulnerabilityDisclosure.Run, securityPolicyContainsText.Run, } // DependencyToolUpdates is all the probes for the // DependencyUpdateTool check. DependencyToolUpdates = []ProbeImpl{ dependencyUpdateToolConfigured.Run, } Fuzzing = []ProbeImpl{ fuzzed.Run, } Packaging = []ProbeImpl{ packagedWithAutomatedWorkflow.Run, } License = []ProbeImpl{ hasLicenseFile.Run, hasFSFOrOSIApprovedLicense.Run, } Contributors = []ProbeImpl{ contributorsFromOrgOrCompany.Run, } Vulnerabilities = []ProbeImpl{ hasOSVVulnerabilities.Run, } CodeReview = []ProbeImpl{ codeApproved.Run, } SAST = []ProbeImpl{ sastToolConfigured.Run, sastToolRunsOnAllCommits.Run, } DangerousWorkflows = []ProbeImpl{ hasDangerousWorkflowScriptInjection.Run, hasDangerousWorkflowUntrustedCheckout.Run, } Maintained = []ProbeImpl{ archived.Run, hasRecentCommits.Run, issueActivityByProjectMember.Run, createdRecently.Run, } CIIBestPractices = []ProbeImpl{ hasOpenSSFBadge.Run, } BinaryArtifacts = []ProbeImpl{ hasUnverifiedBinaryArtifacts.Run, } Webhook = []ProbeImpl{ webhooksUseSecrets.Run, } CITests = []ProbeImpl{ testsRunInCI.Run, } SBOM = []ProbeImpl{ hasSBOM.Run, hasReleaseSBOM.Run, } SignedReleases = []ProbeImpl{ releasesAreSigned.Run, releasesHaveProvenance.Run, } BranchProtection = []ProbeImpl{ blocksDeleteOnBranches.Run, blocksForcePushOnBranches.Run, branchesAreProtected.Run, branchProtectionAppliesToAdmins.Run, dismissesStaleReviews.Run, requiresApproversForPullRequests.Run, requiresCodeOwnersReview.Run, requiresLastPushApproval.Run, requiresUpToDateBranches.Run, runsStatusChecksBeforeMerging.Run, requiresPRsToChangeCode.Run, } PinnedDependencies = []ProbeImpl{ pinsDependencies.Run, } TokenPermissions = []ProbeImpl{ hasNoGitHubWorkflowPermissionUnknown.Run, jobLevelPermissions.Run, topLevelPermissions.Run, } // Probes which aren't included by any checks. // These still need to be listed so they can be called with --probes. Uncategorized = []ProbeImpl{ hasPermissiveLicense.Run, codeReviewOneReviewers.Run, hasBinaryArtifacts.Run, releasesHaveVerifiedProvenance.Run, } // Probes which don't use pre-computed raw data but rather collect it themselves. Independent = []IndependentProbeImpl{} )
Functions ¶
This section is empty.
Types ¶
type IndependentProbeImpl ¶
IndependentProbeImpl is the implementation of an independent probe.
Click to show internal directories.
Click to hide internal directories.