From 6823e6ad463cbc11424eee734a78b9c9db24841a 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..dace71e 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=60) response.raise_for_status() return response.headers['Docker-Content-Digest']