@@ -100,9 +100,9 @@ jobs:
100
100
WS_FORCEUPDATE_FAILBUILDONPOLICYVIOLATION : true
101
101
102
102
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
104
104
echo "Secret is empty"
105
- exit 1
105
+ exit 1
106
106
fi
107
107
108
108
if [ -z "$PRODUCT_NAME" ] || [ -z "$PROJECT_NAME" ]; then
@@ -116,27 +116,30 @@ jobs:
116
116
echo "mend-scan-result=$(echo $exit_code)" >> $GITHUB_OUTPUT
117
117
echo -e "\nEXIT CODE is: $exit_code\n"
118
118
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
127
127
128
128
- name : Check if report is generated
129
129
if : success() || steps.scan.conclusion == 'failure'
130
130
id : report
131
131
shell : bash
132
132
run : |
133
+ echo "Scan conclusion: ${{ steps.scan.conclusion }}"
133
134
echo "mend-report-file=$(find whitesource -type f -name "${PROJECT_NAME}*scan_report.json" | head -n 1)" >> $GITHUB_OUTPUT
134
135
cat $GITHUB_OUTPUT
135
136
136
137
- name : Print scan report
137
138
if : success() || steps.scan.conclusion == 'failure'
138
139
id : print
139
140
run : |
141
+ echo "Scan conclusion: ${{ steps.scan.conclusion }}"
142
+ echo "Scan Outcome: ${{ steps.scan.outcome }}"
140
143
cat ${{ steps.report.outputs.mend-report-file }} | jq .
141
144
142
145
- name : Store mend report
0 commit comments