@@ -168,16 +168,14 @@ def test_entrypoint_cycode_not_added_for_single_file(
168168
169169
170170@pytest .mark .parametrize (
171- ('scan_type' , 'command_scan_type' , 'sync_option' , 'secret_async_env' , ' expect_presigned' ),
171+ ('scan_type' , 'command_scan_type' , 'sync_option' , 'expect_presigned' ),
172172 [
173173 # SAST keeps uploading directly to S3 via a presigned URL (regression guard for the new sync gate).
174- (consts .SAST_SCAN_TYPE , 'path' , False , False , True ),
175- # Secret scans use the previous batched flow by default (presigned async is opt-in).
176- (consts .SECRET_SCAN_TYPE , 'path' , False , False , False ),
177- # With CYCODE_SECRET_SCAN_ASYNC enabled, secret scans upload as a single file directly to S3.
178- (consts .SECRET_SCAN_TYPE , 'path' , False , True , True ),
179- # A --sync secret scan must stay on the batched inline path even when async is enabled.
180- (consts .SECRET_SCAN_TYPE , 'path' , True , True , False ),
174+ (consts .SAST_SCAN_TYPE , 'path' , False , True ),
175+ # Async secret scans now upload as a single file directly to S3 via a presigned URL.
176+ (consts .SECRET_SCAN_TYPE , 'path' , False , True ),
177+ # A --sync secret scan must stay on the batched inline path and never build one giant zip.
178+ (consts .SECRET_SCAN_TYPE , 'path' , True , False ),
181179 ],
182180)
183181@patch ('cycode.cli.apps.scan.code_scanner.print_local_scan_results' )
@@ -194,13 +192,8 @@ def test_scan_documents_routes_upload_by_scan_type_and_sync(
194192 scan_type : str ,
195193 command_scan_type : str ,
196194 sync_option : bool ,
197- secret_async_env : bool ,
198195 expect_presigned : bool ,
199- monkeypatch : pytest .MonkeyPatch ,
200196) -> None :
201- if secret_async_env :
202- monkeypatch .setenv (consts .SECRET_SCAN_ASYNC_ENV_VAR_NAME , 'true' )
203-
204197 mock_presigned_upload .return_value = ([], [])
205198 mock_batched_scan .return_value = ([], [])
206199
0 commit comments