diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 350f189..52a78cb 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -77,6 +77,16 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis + id: Analysis uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" + + - name: Prepare upload artifact + run: | + echo "artifacts_path=$(dirname ${{ github.workspace }})" >> $GITHUB_ENV + - name: Upload CodeQL results + uses: actions/upload-artifact@v4 + with: + name: codeql-results-${{ matrix.language }} + path: ${{ env.artifacts_path }}/results/*.sarif \ No newline at end of file