From a2ad0b5d88a251f98ac7a34c0fac06c7d4acb7f3 Mon Sep 17 00:00:00 2001 From: DataM0del <183248792+DataM0del@users.noreply.github.com> Date: Thu, 26 Dec 2024 10:12:03 -0500 Subject: [PATCH] ci(rust.yml/jobs/clippy): also upload the results when building in release mode --- .github/workflows/rust.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7e2bd3fb..64c092a4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -83,4 +83,9 @@ jobs: - uses: actions/checkout@v4 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - uses: Swatinem/rust-cache@v2 - - run: cargo clippy --release --all-targets --all-features + - run: cargo clippy --release --all-targets --all-features --message-format=json | clippy-sarif | tee results.sarif + - name: Upload analysis results to GitHub + uses: github/codeql-action/upload-sarif@v3 + if: success() || failure() + with: + sarif_file: results.sarif