Skip to content

Commit f87de96

Browse files
committed
filter out low confidence values
1 parent ad00d0c commit f87de96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/actions/semgrep-action/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ runs:
4646
--severity=ERROR \
4747
--exclude="*.html" --exclude="*.js" --exclude="*.spec.ts" \
4848
$baseline_commit_arg \
49-
--${{ inputs.results_format }} > "$results_file" || true
49+
--${{ inputs.results_format }} | \
50+
jq 'to_entries | map(if .key == "results" then .value |= map(select(.extra.metadata.confidence != "LOW")) else . end) | from_entries' \
51+
> "$results_file" || true
5052
shell: bash
5153
- name: "Set results file path output"
5254
id: set_results_file_path_output

0 commit comments

Comments
 (0)