remediation

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDockerfilePinningRemediation

func CreateDockerfilePinningRemediation(dep *checker.Dependency, digester Digester) *finding.Remediation

CreateDockerfilePinningRemediation create remediation for pinning Dockerfile images.

Types

type CraneDigester

type CraneDigester struct{}

func (CraneDigester) Digest

func (c CraneDigester) Digest(name string) (string, error)

type Digester

type Digester interface{ Digest(string) (string, error) }

type RemediationMetadata

type RemediationMetadata struct {
	Branch string
	Repo   string
}

TODO fix how this info makes it checks/evaluation.

func New

New returns remediation relevant metadata from a CheckRequest.

func (*RemediationMetadata) CreateWorkflowPinningRemediation

func (r *RemediationMetadata) CreateWorkflowPinningRemediation(filepath string) *finding.Remediation

CreateWorkflowPinningRemediation create remediation for pinning GH Actions.

Jump to

Keyboard shortcuts

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