Skip to content

Commit

Permalink
builders.op: provide timeout for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
sandre35 committed Feb 22, 2024
1 parent 0136baa commit 6823e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grocker/builders/op.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down

0 comments on commit 6823e6a

Please sign in to comment.