Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sast-unicode-check: make the task work with default params
Before this change, the `sast-unicode-check` was failing with the default parameters because the script was passing the whole list of arguments as a single argument: ``` + mapfile -t fuc_args + LANG=en_US.utf8 + ./find-unicode-control/find_unicode_control.py '-p bidi -v -d -t' /var/workdir/source + FUC_EXIT_CODE=2 + [[ 2 -ne 0 ]] + [[ 2 -ne 1 ]] + echo 'Failed to run find-unicode-control command' Failed to run find-unicode-control command + cat raw_sast_unicode_check_out.log usage: find_unicode_control.py [-h] [-p {all,bidi}] [-v] [-d] [-t] [-c CONFIG] path [path ...] find_unicode_control.py: error: argument -p/--nonprint: invalid choice: ' bidi -v -d -t' (choose from 'all', 'bidi') + note='Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ++ make_result_json -r ERROR -t 'Task sast-unicode-check-oci-ta failed: For details, check Tekton task log.' ``` Fixes: #1401 Related: #1524
- Loading branch information