From ef9c08423d5af296256b2301d05aa7431c4adee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garci=CC=81a?= Date: Mon, 16 Dec 2024 14:48:52 +0100 Subject: [PATCH] Move lint after upload --- .github/workflows/lint.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3a2891c4..b49db795 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -44,6 +44,11 @@ jobs: env: RUSTFLAGS: "-D warnings" + - name: Upload Clippy results to GitHub + uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6 + with: + sarif_file: clippy_result.sarif + # Run it again but this time without the sarif output so that the # status code of the command is caught and reported as failed in GitHub. # This should be cached from the previous step and should be fast. @@ -52,11 +57,6 @@ jobs: env: RUSTFLAGS: "-D warnings" - - name: Upload Clippy results to GitHub - uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6 - with: - sarif_file: clippy_result.sarif - - name: Install cargo-sort run: cargo install cargo-sort --locked --git https://github.com/DevinR528/cargo-sort.git --rev f5047967021cbb1f822faddc355b3b07674305a1