Skip to content

Commit

Permalink
Update rust-clippy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zefanjajobse authored Oct 8, 2023
1 parent e2b56fb commit a1b6c43
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
profile: minimal
toolchain: stable
components: clippy
components: clippy,rustfmt
override: true

- name: Set up cargo cache
Expand All @@ -51,15 +51,15 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- run: cargo install clippy-sarif sarif-fmt
- name: Run rust-clippy
run:
cargo clippy
--all-features
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
cargo clippy --all-targets --all-features --message-format=json |
clippy-sarif | tee results.sarif | sarif-fmt
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
sarif_file: results.sarif
wait-for-processing: true

0 comments on commit a1b6c43

Please sign in to comment.