Skip to content

Commit 5c3df43

Browse files
committed
print mend json report
1 parent ff3ae88 commit 5c3df43

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/mend.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,17 @@ jobs:
116116
fi
117117
118118
- name: Check if report is generated
119+
id: report
119120
shell: bash
120121
run: |
121-
#file=$(find . -type f -regex "whitesource/${PROJECT_NAME}.*scan_report\.json" | head -n 1)
122-
#echo -e "\nFound Mend scan log file - $file\n"
123-
pwd
124122
ls -lt whitesource/
125-
find whitesource -type f -name '*scan_report*.json'
123+
find whitesource -type f -name "${PROJECT_NAME}*scan_report.json"
124+
echo "mend-report=$(find whitesource -type f -name "${PROJECT_NAME}*scan_report.json" | head -n 1)" >> $GITHUB_OUTPUT
125+
cat $GITHUB_OUTPUT
126+
127+
- name: Print scan report
128+
run: |
129+
cat {{ steps.report.mend-report }} | jq .
126130
127131
upload:
128132
name: Archive mend scan report

0 commit comments

Comments
 (0)