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 23, 2024
1 parent 9a50f3a commit 227ff21
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=5)
response.raise_for_status()
return response.headers['Docker-Content-Digest']

Expand Down

0 comments on commit 227ff21

Please sign in to comment.