diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c2beae4..dbf1405 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -75,9 +75,6 @@ jobs: analyze_rust: name: Analyze (Rust) runs-on: ubuntu-latest - defaults: - run: - working-directory: rust permissions: contents: read security-events: write @@ -95,12 +92,16 @@ jobs: run: cargo binstall --no-confirm clippy-sarif sarif-fmt - name: Run clippy + working-directory: rust run: | cargo clippy --all-features --message-format=json > clippy.json + sed --in-place 's/"file_name":"itt/"file_name":"rust\/itt/g' clippy.json clippy-sarif --input clippy.json --output clippy.sarif - sarif-fmt --input clippy.sarif continue-on-error: true + - name: Print SARIF + run: sarif-fmt --input rust/clippy.sarif + - name: Upload analysis uses: github/codeql-action/upload-sarif@v3 with: