File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 83
83
run : |
84
84
# validate we have the actual sarif results
85
85
echo "Checking SARIF file location at: ${{ steps.analysis.outputs.sarif-output }}"
86
- ls -l ${{ steps.analysis.outputs.sarif-output }}
86
+ ls -l ${{ steps.analysis.outputs.sarif-output }}
87
+
88
+ - name : Upload SARIF Results
89
+ uses : actions/upload-artifact@v2
90
+ with :
91
+ name : actual.sarif
92
+ path : |
93
+ ${{ steps.analysis.outputs.sarif-output }}/*.sarif
94
+ if-no-files-found : error
95
+
96
+
97
+ - name : Validate SARIF Results
98
+ shell : bash
99
+ run : |
100
+ # Compare the expected vs the actual
101
+
102
+ if ! diff integration/cpp/expected.sarif ${{ steps.analysis.outputs.sarif-output }}/cpp.sarif ; then
103
+ echo "Expected file does not match actual. Please check the SARIF file for differences."
104
+ exit 1
105
+ fi
You can’t perform that action at this time.
0 commit comments