chore(rust-cli): apply cargo fmt across the workspace (44 files) #9
Workflow file for this run
This file contains hidden or 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
| # SPDX-License-Identifier: MPL-2.0 | |
| # ClusterFuzzLite PR Fuzzing - Layer 6 | |
| # | |
| # Runs on every PR for 5 minutes to catch obvious bugs | |
| # Full fuzzing runs happen in cflite_batch.yml | |
| name: ClusterFuzzLite PR Fuzzing | |
| on: | |
| pull_request: | |
| paths: | |
| - 'impl/rust-cli/src/**' | |
| - 'impl/rust-cli/fuzz/**' | |
| - '.clusterfuzzlite/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| pr_fuzzing: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| sanitizer: [address, undefined] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4 | |
| - name: Build fuzzers (${{ matrix.sanitizer }}) | |
| id: build | |
| uses: google/clusterfuzzlite/actions/build_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1 | |
| with: | |
| language: rust | |
| sanitizer: ${{ matrix.sanitizer }} | |
| - name: Run fuzzers (${{ matrix.sanitizer }}) | |
| id: run | |
| uses: google/clusterfuzzlite/actions/run_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| fuzz-seconds: 300 # 5 minutes per sanitizer | |
| mode: 'code-change' | |
| sanitizer: ${{ matrix.sanitizer }} | |
| output-sarif: true | |
| - name: Upload SARIF (if crashes found) | |
| if: always() && steps.run.outputs.sarif-output != '' | |
| uses: github/codeql-action/upload-sarif@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4 | |
| with: | |
| sarif_file: ${{ steps.run.outputs.sarif-output }} | |
| category: clusterfuzzlite-${{ matrix.sanitizer }} |