binary package - github.com/ossf/allstar/pkg/policies/binary - Go Packages
Package binary implements the Binary Artifacts security policy check from scorecard.
- func NewBinary() policydef.Policy
- type Binary
- func (b Binary) Check(ctx context.Context, c *github.Client, owner, repo string) (*policydef.Result, error)
- func (b Binary) Fix(ctx context.Context, c *github.Client, owner, repo string) error
- func (b Binary) GetAction(ctx context.Context, c *github.Client, owner, repo string) string
- func (b Binary) IsEnabled(ctx context.Context, c *github.Client, owner, repo string) (bool, error)
- func (b Binary) Name() string
- type OrgConfig
- type RepoConfig
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.