We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc2afb commit dddfd5cCopy full SHA for dddfd5c
repo/tuf_on_ci/client.py
@@ -17,6 +17,8 @@
17
from tuf.api.metadata import Metadata
18
from tuf.ngclient import Updater, UpdaterConfig
19
20
+from tuf_on_ci import __version__
21
+
22
23
def expiry_check(dir: str, role: str, timestamp: int):
24
ref_time = datetime.fromtimestamp(timestamp, UTC)
@@ -63,7 +65,10 @@ def client(
63
65
64
66
# Allow for a large number of root rotations, as metadata is
67
# not cached during testing
- config = UpdaterConfig(max_root_rotations=256)
68
+ config = UpdaterConfig(
69
+ max_root_rotations=256,
70
+ app_user_agent=f"tuf-on-ci-test-client/{__version__}",
71
+ )
72
73
# initialize client with --initial-root or from metadata_url
74
if initial_root is not None:
0 commit comments