Fix Wiz vulnerability upload timeout and python-dotenv dependency check#52
Merged
Merged
Conversation
- Increase the Paramify assessment-intake upload timeout from 120s to
600s in wiz_vulnerabilities_findings.py. The vulnerability CSV (~12 MB)
takes longer than 120s to upload and the run was failing with a
write-operation timeout after a successful fetch.
- Recognize the catalog dependency name "python-dotenv" in
run_fetchers.py by importing its actual module name ("dotenv"). This
removes a false "python-dotenv not found" warning during the
pre-run dependency check.
Co-authored-by: Cursor <cursoragent@cursor.com>
soya-beep
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
120sto600sinfetchers/wiz/wiz_vulnerabilities_findings.py. The vulnerability CSV (~12 MB / ~5.4k findings) takes ~2.5 min to upload; the fetch succeeded but the upload was dying with awrite operation timed outerror.3-run-fetchers/run_fetchers.pychecked the catalog dependencypython-dotenvby importing that literal name, which always failed and produced a misleadingpython-dotenv not foundwarning. It now maps the dependency to its real module name (dotenv).Context
While running the Wiz fetchers through the menu flow (
main.py-> option 3 ->run_fetchers.py), the scripts resolved and ran correctly (the prior "Script not found" issue was caused by a stale, git-ignoredevidence_sets.json, not the tracked catalog, which is already correct onmain). These two code-level fixes are the changes that belong in the repo.Test plan
wiz_vulnerabilities_findings.pycompletes the Paramify upload of the full ~12 MB CSV without timing out.run_fetchers.pydependency check prints✓ python-dotenvinstead of a false "not found" warning.python3 -c "import run_fetchers"imports cleanly; no linter errors.Notes (not in this PR)
evidence_sets.jsonandcustomer_config.jsonare git-ignored local artifacts; their Wiz entries were reconciled locally to the canonical (wiz_issues_report/wiz_vulnerabilities_findings) naming used by the tracked catalog.evidence_fetchers_catalog.json(old naming scheme) was removed locally.wiz_issues_reportrequiresWIZ_ISSUES_PARAMIFY_ASSESSMENT_IDin.env; that key currently appears to be missing from the local.envand must be restored (no.envchanges are included here).Made with Cursor