@@ -100,9 +100,9 @@ jobs:
100100 WS_FORCEUPDATE_FAILBUILDONPOLICYVIOLATION : true
101101
102102 run : |
103- if [ -z ${{ secrets. WS_APIKEY_NGINX }} ] || [ -z ${{ secrets. WS_USER_KEY }} ]; then
103+ if [ -z "$ WS_APIKEY_NGINX" ] || [ -z "$ WS_USER_KEY" ]; then
104104 echo "Secret is empty"
105- exit 1
105+ exit 1
106106 fi
107107
108108 if [ -z "$PRODUCT_NAME" ] || [ -z "$PROJECT_NAME" ]; then
@@ -116,27 +116,30 @@ jobs:
116116 echo "mend-scan-result=$(echo $exit_code)" >> $GITHUB_OUTPUT
117117 echo -e "\nEXIT CODE is: $exit_code\n"
118118
119- if (( exit_code != 254 )); then
120- printf "\nMend scan detected problems.\n"
121- exit 0
122- # exit 254
123- else
124- printf "\nMend scan completed successfully. Exiting with code = 0\n"
125- exit 0
126- fi
119+ # if (( exit_code != 254 )); then
120+ # printf "\nMend scan detected problems.\n"
121+ # exit 0
122+ # # exit 254
123+ # else
124+ # printf "\nMend scan completed successfully. Exiting with code = 0\n"
125+ # exit 0
126+ # fi
127127
128128 - name : Check if report is generated
129129 if : success() || steps.scan.conclusion == 'failure'
130130 id : report
131131 shell : bash
132132 run : |
133+ echo "Scan conclusion: ${{ steps.scan.conclusion }}"
133134 echo "mend-report-file=$(find whitesource -type f -name "${PROJECT_NAME}*scan_report.json" | head -n 1)" >> $GITHUB_OUTPUT
134135 cat $GITHUB_OUTPUT
135136
136137 - name : Print scan report
137138 if : success() || steps.scan.conclusion == 'failure'
138139 id : print
139140 run : |
141+ echo "Scan conclusion: ${{ steps.scan.conclusion }}"
142+ echo "Scan Outcome: ${{ steps.scan.outcome }}"
140143 cat ${{ steps.report.outputs.mend-report-file }} | jq .
141144
142145 - name : Store mend report
0 commit comments