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:
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
You can’t perform that action at this time.
0 commit comments