We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3ae88 commit 5c3df43Copy full SHA for 5c3df43
.github/workflows/mend.yml
@@ -116,13 +116,17 @@ jobs:
116
fi
117
118
- name: Check if report is generated
119
+ id: report
120
shell: bash
121
run: |
- #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
ls -lt whitesource/
125
- find whitesource -type f -name '*scan_report*.json'
+ find whitesource -type f -name "${PROJECT_NAME}*scan_report.json"
+ echo "mend-report=$(find whitesource -type f -name "${PROJECT_NAME}*scan_report.json" | head -n 1)" >> $GITHUB_OUTPUT
+ cat $GITHUB_OUTPUT
126
+
127
+ - name: Print scan report
128
+ run: |
129
+ cat {{ steps.report.mend-report }} | jq .
130
131
upload:
132
name: Archive mend scan report
0 commit comments