File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -371,6 +371,7 @@ optional_params_cli=(
371371 " review_comments"
372372 " static_analysis"
373373 " static_analysis_tool"
374+ " review_scope"
374375 " dependency_check"
375376 " dependency_check.snyk_auth_token"
376377 " cra_version"
@@ -394,6 +395,7 @@ optional_params_server=(
394395 " review_comments"
395396 " static_analysis"
396397 " static_analysis_tool"
398+ " review_scope"
397399 " dependency_check"
398400 " dependency_check.snyk_auth_token"
399401 " server_port"
463465for param in " ${optional_params[@]} " ; do
464466 if [ " $param " == " dependency_check.snyk_auth_token" ] && [ " ${props["dependency_check"]} " == " True" ]; then
465467 ask_for_param " $param " " False"
466- elif [ " $param " != " dependency_check.snyk_auth_token" ] && [ " $param " != " env" ] && [ " $param " != " cli_path" ] && [ " $param " != " output_path" ] && [ " $param " != " static_analysis_tool" ] && [ " $param " != " git.domain" ]; then
468+ elif [ " $param " != " dependency_check.snyk_auth_token" ] && [ " $param " != " env" ] && [ " $param " != " cli_path" ] && [ " $param " != " output_path" ] && [ " $param " != " static_analysis_tool" ] && [ " $param " != " git.domain" ] && [ " $param " != " review_scope " ] ; then
467469 ask_for_param " $param " " False"
468470 fi
469471done
@@ -495,6 +497,9 @@ for param in "${required_params[@]}" "${bee_params[@]}" "${optional_params[@]}";
495497 docker_cmd+=" --static_analysis.fb_infer.enabled=${props[$param]} "
496498 elif [ " $param " == " static_analysis_tool" ]; then
497499 docker_cmd+=" --static_analysis_tool=${props[$param]} "
500+ elif [ " $param " == " review_scope" ]; then
501+ scopes=$( echo ${props[$param]} | sed ' s/, */,/g' )
502+ docker_cmd+=" --review_scope='[$scopes ]'"
498503 elif [ " $param " == " dependency_check" ]; then
499504 # validate the dependency check boolean value
500505 props[$param ]=$( validate_boolean " ${props[$param]} " )
You can’t perform that action at this time.
0 commit comments