Skip to content

Bump version_check from 0.9.4 to 0.9.5 #319

Bump version_check from 0.9.4 to 0.9.5

Bump version_check from 0.9.4 to 0.9.5 #319

Workflow file for this run

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