crash.software
Projects
Pull Requests
Issues
Builds
scorecard
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
scorecard
Files
🤬
Sign In
7f2e8407
ROOT
/
attestor
/
policy
/
attestation_policy.go
Search
History
329 lines
|
ISO-8859-1
|
8 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
AttestationPolicy
PreventBinaryArtifacts
:
bool
AllowedBinaryArtifacts
:
[]string
PreventKnownVulnerabilities
:
bool
PreventUnpinnedDependencies
:
bool
AllowedUnpinnedDependencies
:
[]Dependency
EnsureCodeReviewed
:
bool
CodeReviewRequirements
:
CodeReviewRequirements
CodeReviewRequirements
RequiredApprovers
:
[]string
MinReviewers
:
int
Dependency
Filepath
:
string
PackageName
:
string
Version
:
string
PolicyResult
Pass
:
PolicyResult
Fail
:
PolicyResult
CheckPreventBinaryArtifacts
( allowedBinaryArtifacts []string, results *checker.RawResults, logger *sclog.Logger, )
:
(PolicyResult, error)
CheckNoVulnerabilities
(results *checker.RawResults, logger *sclog.Logger)
:
(PolicyResult, error)
toString
(cs *checker.Changeset)
:
string
CheckCodeReviewed
( reqs CodeReviewRequirements, results *checker.RawResults, logger *sclog.Logger, )
:
(PolicyResult, error)
CheckNoUnpinnedDependencies
( allowed []Dependency, results *checker.RawResults, logger *sclog.Logger, )
:
(PolicyResult, error)
isUnpinnedDependencyAllowed
(d checker.Dependency, allowed []Dependency)
:
bool
ParseAttestationPolicyFromFile
(policyFile string)
:
(*AttestationPolicy, error)
ParseAttestationPolicyFromYAML
(b []byte)
:
(*AttestationPolicy, error)
*AttestationPolicy
GetRequiredChecksForPolicy
()
:
map[string]bool
EvaluateResults
(raw *checker.RawResults)
:
(PolicyResult, error)
All occurrences
Please wait...
Page is in error, reload to recover