Skip to content

Commit 017b010

Browse files
committed
Changes related to compliance scan for Mend
1 parent 72d21d8 commit 017b010

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/mend.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,32 +113,20 @@ jobs:
113113
exit_code=$?
114114
115115
echo "mend-scan-result=$(echo $exit_code)" >> $GITHUB_OUTPUT
116-
echo -e "\nEXIT CODE is: $exit_code\n"
117-
118-
# if (( exit_code != 254 )); then
119-
# printf "\nMend scan detected problems.\n"
120-
# exit 0
121-
# # exit 254
122-
# else
123-
# printf "\nMend scan completed successfully. Exiting with code = 0\n"
124-
# exit 0
125-
# fi
116+
echo -e "\nEXIT CODE is: $exit_code\n"
126117
127118
- name: Check if report is generated
128119
if: success() || steps.scan.conclusion == 'failure'
129120
id: report
130121
shell: bash
131122
run: |
132-
echo "Scan conclusion: ${{ steps.scan.conclusion }}"
133123
echo "mend-report-file=$(find whitesource -type f -name "${PROJECT_NAME}*scan_report.json" | head -n 1)" >> $GITHUB_OUTPUT
134124
cat $GITHUB_OUTPUT
135125
136126
- name: Print scan report
137127
if: success() || steps.scan.conclusion == 'failure'
138128
id: print
139129
run: |
140-
echo "Scan conclusion: ${{ steps.scan.conclusion }}"
141-
echo "Scan Outcome: ${{ steps.scan.outcome }}"
142130
cat ${{ steps.report.outputs.mend-report-file }} | jq .
143131
144132
- name: Store mend report
@@ -150,7 +138,12 @@ jobs:
150138
retention-days: 7
151139

152140
- name: Final scan result
153-
if: ${{ steps.scan.outcome }} == "failure"
141+
if: ${{ steps.scan.outcome }} == 'failure'
154142
run: |
155-
printf "\nMend scan detected problems.\n"
143+
printf "\nSCA scan detected vulnerabilities.\n"
156144
exit 1
145+
146+
- name: Final scan result
147+
if: ${{ steps.scan.outcome }} == 'success'
148+
run: |
149+
exit 0

0 commit comments

Comments
 (0)