File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -116,13 +116,17 @@ jobs:
116
116
fi
117
117
118
118
- name : Check if report is generated
119
+ id : report
119
120
shell : bash
120
121
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
124
122
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 .
126
130
127
131
upload :
128
132
name : Archive mend scan report
You can’t perform that action at this time.
0 commit comments