Skip to content

Commit

Permalink
Use current time if no tlog or signed timestamps
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Soyland <codysoyland@github.com>
  • Loading branch information
codysoyland committed Dec 18, 2024
1 parent b24be4b commit 00d3e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cosign/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (co *CheckOpts) verificationOptions() (trustedMaterial root.TrustedMaterial
verifierOptions = append(verifierOptions, verify.WithSignedTimestamps(1))
}
if co.IgnoreTlog && !co.UseSignedTimestamps {
verifierOptions = append(verifierOptions, verify.WithoutAnyObserverTimestampsUnsafe())
verifierOptions = append(verifierOptions, verify.WithCurrentTime())
}

return vTrustedMaterial, verifierOptions, policyOptions, nil
Expand Down

0 comments on commit 00d3e2e

Please sign in to comment.