Skip to content

Commit

Permalink
KER-1: Generate SARIF report
Browse files Browse the repository at this point in the history
  • Loading branch information
mikroskeem committed Jan 2, 2025
1 parent f50a8e1 commit 87d5440
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,27 @@ jobs:
name: "Cache dependencies"
uses: "Swatinem/rust-cache@v2"

- id: "setup-sarif"
name: "Setup SARIF tools"
run: |
cargo install clippy-sarif sarif-fmt
- id: "fmt"
name: "Check formatting"
run: |
cargo fmt --all -- --check
- id: "clippy"
name: "Run clippy"
run: |
cargo clippy -- -D warnings
- id: "run-clippy"
name: "Run Clippy"
run: >
cargo clippy --all-targets --all-features --message-format=json -- -D warnings
| clippy-sarif
| tee results.sarif
| sarif-fmt
- id: "upload-sarif"
name: "Upload SARIF file"
uses: "github/codeql-action/upload-sarif@v3"
with:
sarif_file: "results.sarif"
category: "rust-clippy"

0 comments on commit 87d5440

Please sign in to comment.