File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,20 @@ jobs:
38
38
- name : Install clippy-sarif and sarif-fmt
39
39
run : cargo install clippy-sarif sarif-fmt --locked --git https://github.com/psastras/sarif-rs.git --rev 11c33a53f6ffeaed736856b86fb6b7b09fabdfd8
40
40
41
- - name : Cargo clippy
41
+ - name : Cargo clippy-sarif
42
42
run : cargo clippy --all-features --tests --message-format=json |
43
43
clippy-sarif | tee clippy_result.sarif | sarif-fmt
44
44
env :
45
45
RUSTFLAGS : " -D warnings"
46
46
47
+ # Run it again but this time with the sarif output so that the
48
+ # status code of the command is caught and reported as failed in GitHub.
49
+ # This should be cached from the previous step and should be fast.
50
+ - name : Cargo clippy
51
+ run : cargo clippy --all-features --tests
52
+ env :
53
+ RUSTFLAGS : " -D warnings"
54
+
47
55
- name : Upload Clippy results to GitHub
48
56
uses : github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
49
57
with :
You can’t perform that action at this time.
0 commit comments