From 40b8ee6e2f8760990ae2fb4cefbe72151a5ff009 Mon Sep 17 00:00:00 2001 From: Brian <89487381+b4yuan@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:06:40 -0500 Subject: [PATCH] Update codeql.yml Signed-off-by: Brian <89487381+b4yuan@users.noreply.github.com> --- .github/workflows/codeql.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 827ede230..4a7ca9862 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -63,4 +63,12 @@ jobs: uses: github/codeql-action/upload-sarif@v2 with: sarif_file: ${{ steps.step1.outputs.sarif-output }} - category: "/language:${{matrix.language}}" + category: "/language:cpp" + + - name: Upload CodeQL results as an artifact + if: success() || failure() + uses: actions/upload-artifact@v3 + with: + name: codeql-results + path: ${{ steps.step1.outputs.sarif-output }} + retention-days: 5