File tree 1 file changed +4
-13
lines changed 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 86
86
87
87
- name : Scan and upload
88
88
id : scan
89
+ continue-on-error : true
89
90
env :
90
91
WS_URL : " https://f5.whitesourcesoftware.com/agent"
91
92
WS_APIKEY_NGINX : ${{ secrets.WS_APIKEY_NGINX }}
@@ -125,33 +126,23 @@ jobs:
125
126
fi
126
127
127
128
- name : Check if report is generated
129
+ if : success() || steps.scan.conclusion == 'failure'
128
130
id : report
129
131
shell : bash
130
132
run : |
131
133
echo "mend-report-file=$(find whitesource -type f -name "${PROJECT_NAME}*scan_report.json" | head -n 1)" >> $GITHUB_OUTPUT
132
134
cat $GITHUB_OUTPUT
133
135
134
136
- name : Print scan report
137
+ if : success() || steps.scan.conclusion == 'failure'
135
138
id : print
136
139
run : |
137
140
cat ${{ steps.report.outputs.mend-report-file }} | jq .
138
141
139
142
- name : Store mend report
143
+ if : success() || steps.scan.conclusion == 'failure'
140
144
uses : actions/upload-artifact@v4
141
145
with :
142
146
name : mend-scan-report
143
147
path : whitesource
144
148
retention-days : 14
145
-
146
- - name : Final scan result
147
- id : final
148
- run : |
149
- echo -e "\nEXIT CODE is: ${{ steps.scan.outputs.mend-scan-result }}\n"
150
-
151
- if (( ${{ steps.scan.outputs.mend-scan-result }} != 254 )); then
152
- printf "\nMend scan detected problems.\n"
153
- exit ${{ steps.scan.outputs.mend-scan-result }}
154
- else
155
- printf "\nMend scan completed successfully.\n"
156
- exit ${{ steps.scan.outputs.mend-scan-result }}
157
- fi
You can’t perform that action at this time.
0 commit comments