summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/clippy.yaml5
1 files changed, 2 insertions, 3 deletions
diff --git a/.github/workflows/clippy.yaml b/.github/workflows/clippy.yaml
index cb35d14..caa22bb 100644
--- a/.github/workflows/clippy.yaml
+++ b/.github/workflows/clippy.yaml
@@ -23,12 +23,11 @@ jobs:
- name: enter shell
run: |
nix develop --accept-flake-config
- nix shell --accept-flake-config github:getchoo/nix-exprs#clippy-sarif
- name: run clippy
run: |
- mkdir -p /tmp
- cargo clippy --all --all-targets --message-format=json | clippy-sarif > /tmp/clippy.sarif
+ cargo clippy --all --all-targets --message-format=json \
+ | nix run --accept-flake-config github:getchoo/nix-exprs#clippy-sarif > /tmp/clippy.sarif
- name: upload results
uses: github/codeql-action/upload-sarif@v2