diff --git a/.github/workflows/scripts/bandit.sh b/.github/workflows/scripts/bandit.sh deleted file mode 100644 index e2561dbd..00000000 --- a/.github/workflows/scripts/bandit.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# Copyright (c) 2024 Intel Corporation -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -source /GenAIEval/.github/workflows/scripts/change_color -log_dir=/GenAIEval/.github/workflows/scripts/codeScan -python -m bandit -r -lll -iii /GenAIEval >${log_dir}/bandit.log -exit_code=$? - -$BOLD_YELLOW && echo " ----------------- Current log file output start --------------------------" -cat ${log_dir}/bandit.log -$BOLD_YELLOW && echo " ----------------- Current log file output end --------------------------" && $RESET - -if [ ${exit_code} -ne 0 ]; then - $BOLD_RED && echo "Error!! Please Click on the artifact button to download and check error details." && $RESET - exit 1 -fi - -$BOLD_PURPLE && echo "Congratulations, Bandit check passed!" && $LIGHT_PURPLE && echo " You can click on the artifact button to see the log details." && $RESET -exit 0 \ No newline at end of file