Skip to content

Commit

Permalink
ci(rust.yml/jobs/clippy): integrate with GitHub Advanced Security / G…
Browse files Browse the repository at this point in the history
…itHub Code Scanning
  • Loading branch information
DataM0del committed Dec 26, 2024
1 parent d833582 commit 7d603b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo install clippy-sarif
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets --all-features
- run: cargo clippy --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
with:
sarif_file: results.sarif
build_and_test:
name: Build project and test
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 7d603b1

Please sign in to comment.