File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import argparse
6+ import base64
67import json
78import logging
89import typing
2021 parse_wheel_filename ,
2122)
2223from pydantic import ValidationError
24+ from rfc3161_client import decode_timestamp_response
2325from rfc3986 import exceptions , uri_reference , validators
2426from sigstore .models import Bundle , ClientTrustConfig , InvalidBundle
2527from sigstore .oidc import IdentityError , IdentityToken , Issuer
@@ -510,6 +512,14 @@ def _inspect(args: argparse.Namespace) -> None:
510512 )
511513 for idx , entry in enumerate (verification_material .transparency_entries ):
512514 _logger .info (f"\t Log Index: { entry ['logIndex' ]} " )
515+ kv = entry ["kindVersion" ]
516+ _logger .info (f"\t Entry type: { kv ['kind' ]} { kv ['version' ]} " )
517+
518+ # Timestamps
519+ _logger .info (f"Timestamps ({ len (verification_material .timestamps )} ):" )
520+ for data in verification_material .timestamps :
521+ ts = decode_timestamp_response (base64 .b64decode (data ))
522+ _logger .info (f"\t Time: { ts .tst_info .gen_time } " )
513523
514524
515525def _verify_attestation (args : argparse .Namespace ) -> None :
You can’t perform that action at this time.
0 commit comments