binary package - github.com/ossf/allstar/pkg/policies/binary - Go Packages

Package binary implements the Binary Artifacts security policy check from scorecard.

This section is empty.

This section is empty.

NewBinary returns a new Binary Artifacts policy.

Binary is the Binary Artifacts policy object, implements policydef.Policy.

Check performs the policy check for this policy based on the configuration stored in the org/repo, implementing policydef.Policy.Check().

Fix implementing policydef.Policy.Fix(). Scorecard checks will not have a Fix option.

GetAction returns the configured action from this policy's configuration stored in the org-level repo, default log. Implementing policydef.Policy.GetAction().

Check whether this policy is enabled or not.

Name returns the name of this policy, implementing policydef.Policy.Name().

OrgConfig is the org-level config definition for this policy.

RepoConfig is the repo-level config for this policy.