Skip to content

Commit 60ad8f5

Browse files
committed
fix: can_download_source was not looking at downloads
Signed-off-by: Carl Flottmann <[email protected]>
1 parent 7a6c632 commit 60ad8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macaron/slsa_analyzer/package_registry/pypi_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def can_download_package_sourcecode(self, url: str) -> bool:
227227
bool
228228
True if it can be downloaded within the size limits, otherwise False.
229229
"""
230-
size_limit = defaults.getint("slsa.verifier", "max_download_size", fallback=10000000)
230+
size_limit = defaults.getint("downloads", "max_download_size", fallback=10000000)
231231
timeout = defaults.getint("downloads", "timeout", fallback=120)
232232
return can_download_file(url, size_limit, timeout=timeout)
233233

0 commit comments

Comments
 (0)