Skip to content

Commit

Permalink
use @mirabilos' improved jq fix for cadacy
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Jan 21, 2024
1 parent 936ff05 commit f8c0833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
files: results.sarif
- name: Remove duplicate runs
if: steps.check_files.outputs.files_exists == 'true'
run: jq '.runs |= unique_by({tool, invocations})' results.sarif > codacy.sarif
run: jq -c '.runs |= unique_by({tool, invocations, results})' results.sarif > codacy.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
if: steps.check_files.outputs.files_exists == 'true'
Expand Down

0 comments on commit f8c0833

Please sign in to comment.