Rust CI / cargo test (x86_64-unknown-linux-musl) (pull_request) Waiting to run
Rust CI / cargo doc (pull_request) Waiting to run
Fuzz Smoke / cargo fuzz smoke (pull_request) Waiting to run
Netem Interop / netem interop (pull_request) Waiting to run
Supply chain / cargo-deny advisories (pull_request) Waiting to run
Supply chain / cargo-deny bans licenses sources (pull_request) Waiting to run
Supply chain / actionlint (pull_request) Waiting to run
Rust CI / cargo fmt (pull_request) Failing after 11m1s
Rust CI / cargo clippy (pull_request) Failing after 21m0s
Rust CI / cargo check (x86_64-unknown-linux-gnu) (pull_request) Failing after 26m0s
Rust CI / cargo check (x86_64-unknown-linux-musl) (pull_request) Failing after 17m20s
Rust CI / cargo test (x86_64-unknown-linux-gnu) (pull_request) Failing after 33m21s
73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
name: Clippy SARIF
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: "17 12 * * 4"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
actions: read
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
clippy-sarif:
|
|
name: Clippy SARIF
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Rust toolchain
|
|
uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2
|
|
with:
|
|
components: clippy
|
|
cache-key: clippy-sarif
|
|
|
|
- name: Install SARIF tools
|
|
run: |
|
|
cargo install --locked clippy-sarif sarif-fmt
|
|
|
|
- name: Run Clippy and generate SARIF
|
|
id: clippy
|
|
shell: bash
|
|
run: |
|
|
set +e
|
|
|
|
cargo clippy \
|
|
--workspace \
|
|
--all-targets \
|
|
--all-features \
|
|
--locked \
|
|
--message-format=json \
|
|
| clippy-sarif \
|
|
| tee rust-clippy-results.sarif \
|
|
| sarif-fmt
|
|
|
|
clippy_status=${PIPESTATUS[0]}
|
|
echo "exit_code=${clippy_status}" >> "$GITHUB_OUTPUT"
|
|
|
|
exit 0
|
|
|
|
- name: Upload Clippy SARIF
|
|
uses: github/codeql-action/upload-sarif@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4
|
|
if: always()
|
|
with:
|
|
sarif_file: rust-clippy-results.sarif
|
|
category: clippy
|
|
wait-for-processing: true
|
|
|
|
- name: Fail if Clippy failed
|
|
if: steps.clippy.outputs.exit_code != '0'
|
|
run: exit 1
|