Bump clap from 3.2.25 to 4.5.13 #327
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rust-clippy analyze | |
on: | |
push: | |
branches: [ "MAIN" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "MAIN" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rust-clippy-analyze: | |
name: Run rust-clippy analyzing | |
runs-on: ubuntu-latest | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
permissions: | |
contents: read | |
security-events: write | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: clippy | |
override: true | |
- name: Install clippy-sarif | |
uses: baptiste0928/[email protected] | |
env: | |
RUSTC_WRAPPER: "" | |
with: | |
crate: clippy-sarif | |
- name: Install sarif-fmt | |
uses: baptiste0928/[email protected] | |
env: | |
RUSTC_WRAPPER: "" | |
with: | |
crate: sarif-fmt | |
- name: Sccache Action | |
uses: Mozilla-Actions/[email protected] | |
- name: Run rust-clippy | |
run: | |
cargo clippy | |
--all-features | |
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt | |
continue-on-error: true | |
- name: Upload analysis results to GitHub | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: rust-clippy-results.sarif | |
category: clippy-full | |
wait-for-processing: true | |
- name: Run rust-clippy for check | |
run: | |
cargo clippy --all-features |