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