From 227ff21d4c5e3683b16cb64100bea78b27e0ffed Mon Sep 17 00:00:00 2001 From: Alexandre Muller Date: Thu, 22 Feb 2024 15:44:21 +0100 Subject: [PATCH] builders.op: provide timeout for requests --- src/grocker/builders/op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grocker/builders/op.py b/src/grocker/builders/op.py index 4a8faa9..d36adf2 100644 --- a/src/grocker/builders/op.py +++ b/src/grocker/builders/op.py @@ -93,7 +93,7 @@ def get_manifest_digest(name): return None # Docker HUB API is not documented registry, repository = registry_repository.split('/', 1) - response = requests.head(f'https://{registry}/v2/{repository}/manifests/{tag}') + response = requests.head(f'https://{registry}/v2/{repository}/manifests/{tag}', timeout=5) response.raise_for_status() return response.headers['Docker-Content-Digest']