@@ -66,13 +66,13 @@ jobs:
6666 with :
6767 languages : ${{ matrix.language }}
6868 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
7070 tools : ${{ env.QLT_CODEQL_HOME }}/../out/codeql-bundle.tar.gz
7171
7272 - name : Autobuild
7373 uses : github/codeql-action/autobuild@v2
7474 with :
75- working-directory : integration/cpp/src/ # Path containing the example application
75+ working-directory : integration-tests /cpp/src/ # Path containing the example application
7676
7777 - name : Perform CodeQL Analysis
7878 id : analysis
@@ -93,13 +93,23 @@ jobs:
9393 ${{ steps.analysis.outputs.sarif-output }}/*.sarif
9494 if-no-files-found : error
9595
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+
96104
97105 - name : Validate SARIF Results
98106 shell : bash
99107 run : |
100108 # 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
103113 echo "Expected file does not match actual. Please check the SARIF file for differences."
104114 exit 1
105115 fi
0 commit comments