diff --git a/lib/sigstore/verifier.rb b/lib/sigstore/verifier.rb index f55c652..12e1df6 100644 --- a/lib/sigstore/verifier.rb +++ b/lib/sigstore/verifier.rb @@ -93,9 +93,12 @@ def verify(input:, policy:, offline:) end end - Internal::SET.verify_set(keyring: @rekor_keyring, entry:) if entry.inclusion_promise + if entry.inclusion_promise + Internal::SET.verify_set(keyring: @rekor_keyring, entry:) + timestamps << Time.at(entry.integrated_time).utc + end - timestamps << Time.at(entry.integrated_time).utc + return VerificationFailure.new("No verified timestamp") if timestamps.empty? # 3) # The Verifier MUST perform certification path validation (RFC 5280 ยง6) of the certificate chain with the