@@ -66,13 +66,13 @@ jobs:
66
66
with :
67
67
languages : ${{ matrix.language }}
68
68
queries : security-extended
69
- source-root : integration/cpp/src/ # Path containing the example application
69
+ source-root : integration-tests /cpp/src/ # Path containing the example application
70
70
tools : ${{ env.QLT_CODEQL_HOME }}/../out/codeql-bundle.tar.gz
71
71
72
72
- name : Autobuild
73
73
uses : github/codeql-action/autobuild@v2
74
74
with :
75
- working-directory : integration/cpp/src/ # Path containing the example application
75
+ working-directory : integration-tests /cpp/src/ # Path containing the example application
76
76
77
77
- name : Perform CodeQL Analysis
78
78
id : analysis
@@ -93,13 +93,23 @@ jobs:
93
93
${{ steps.analysis.outputs.sarif-output }}/*.sarif
94
94
if-no-files-found : error
95
95
96
+ - name : Upload Bundle Used
97
+ uses : actions/upload-artifact@v2
98
+ with :
99
+ name : codeql-bundle.tar.gz
100
+ path : |
101
+ ${{ env.QLT_CODEQL_HOME }}/../out/codeql-bundle.tar.gz
102
+ if-no-files-found : error
103
+
96
104
97
105
- name : Validate SARIF Results
98
106
shell : bash
99
107
run : |
100
108
# Compare the expected vs the actual
101
-
102
- if ! diff integration/cpp/expected.sarif ${{ steps.analysis.outputs.sarif-output }}/cpp.sarif ; then
109
+ cat integration-tests/cpp/expected.sarif | jq '.runs' > integration-tests/cpp/expected
110
+ cat ${{ steps.analysis.outputs.sarif-output }}/cpp.sarif | jq '.runs' > integration-tests/cpp/actual
111
+
112
+ if ! diff integration-tests/cpp/expected integration-tests/cpp/actual ; then
103
113
echo "Expected file does not match actual. Please check the SARIF file for differences."
104
114
exit 1
105
115
fi
0 commit comments