There was an error while loading. Please reload this page.
1 parent 4acb6a8 commit 52ccb87Copy full SHA for 52ccb87
1 file changed
cycode/cli/utils/scan_utils.py
@@ -36,8 +36,6 @@ def is_cycodeignore_allowed_by_scan_config(ctx: typer.Context) -> bool:
36
def should_use_presigned_upload(scan_type: str) -> bool:
37
if scan_type in consts.PRESIGNED_UPLOAD_SCAN_TYPES:
38
return True
39
- # Secret scans use the presigned S3 async flow only when explicitly opted in via env var;
40
- # read os.environ at runtime (not config.get_val_as_bool, which snapshots os.environ at import time).
41
if scan_type == consts.SECRET_SCAN_TYPE:
42
return parse_bool(os.getenv(consts.SECRET_SCAN_ASYNC_ENV_VAR_NAME))
43
return False
0 commit comments