mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-19 03:06:45 +02:00
Update slsa validation to not validate version when running in github actions, since the one in actions isn't associated with a released version
This commit is contained in:
@@ -17,10 +17,12 @@ import (
|
||||
|
||||
func verify(ctx context.Context, provenance []byte, artifactHash, source, branch, versionTag string) error {
|
||||
provenanceOpts := &options.ProvenanceOpts{
|
||||
ExpectedSourceURI: source,
|
||||
ExpectedBranch: &branch,
|
||||
ExpectedDigest: artifactHash,
|
||||
ExpectedVersionedTag: &versionTag,
|
||||
ExpectedSourceURI: source,
|
||||
ExpectedBranch: &branch,
|
||||
ExpectedDigest: artifactHash,
|
||||
}
|
||||
if versionTag != "" {
|
||||
provenanceOpts.ExpectedVersionedTag = &versionTag
|
||||
}
|
||||
builderOpts := &options.BuilderOpts{}
|
||||
_, _, err := verifiers.Verify(ctx, provenance, artifactHash, provenanceOpts, builderOpts)
|
||||
|
Reference in New Issue
Block a user