File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-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
1112from tempfile import TemporaryDirectory
1213
1314import requests
15+ from rfc3161_client import decode_timestamp_response
1416import sigstore .oidc
1517from cryptography import x509
1618from packaging .utils import (
@@ -510,6 +512,18 @@ 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 (
520+ f"Timestamps ({ len (verification_material .timestamps )} ):"
521+ )
522+ for data in verification_material .timestamps :
523+ ts = decode_timestamp_response (base64 .b64decode (data ))
524+ _logger .info (f"\t Time: { ts .tst_info .gen_time } " )
525+
526+
513527
514528
515529def _verify_attestation (args : argparse .Namespace ) -> None :
You can’t perform that action at this time.
0 commit comments