Skip to content

Commit 33d9870

Browse files
committed
run all despite err
Signed-off-by: Jakub Jarosz <[email protected]>
1 parent d1a3d1a commit 33d9870

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/mend.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686

8787
- name: Scan and upload
8888
id: scan
89+
continue-on-error: true
8990
env:
9091
WS_URL: "https://f5.whitesourcesoftware.com/agent"
9192
WS_APIKEY_NGINX: ${{ secrets.WS_APIKEY_NGINX }}
@@ -125,33 +126,23 @@ jobs:
125126
fi
126127
127128
- name: Check if report is generated
129+
if: success() || steps.scan.conclusion == 'failure'
128130
id: report
129131
shell: bash
130132
run: |
131133
echo "mend-report-file=$(find whitesource -type f -name "${PROJECT_NAME}*scan_report.json" | head -n 1)" >> $GITHUB_OUTPUT
132134
cat $GITHUB_OUTPUT
133135
134136
- name: Print scan report
137+
if: success() || steps.scan.conclusion == 'failure'
135138
id: print
136139
run: |
137140
cat ${{ steps.report.outputs.mend-report-file }} | jq .
138141
139142
- name: Store mend report
143+
if: success() || steps.scan.conclusion == 'failure'
140144
uses: actions/upload-artifact@v4
141145
with:
142146
name: mend-scan-report
143147
path: whitesource
144148
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

0 commit comments

Comments
 (0)