We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3fae40 commit 0c4c1bdCopy full SHA for 0c4c1bd
.circleci/config.yml
@@ -55,15 +55,13 @@ jobs:
55
name: "Create Summary JSON for Blocking findings only"
56
when: always
57
command: |
58
- findings_summary='{"results":[]}'
59
for k in $(jq '.results | keys | .[]' findings.json); do
60
value=$(jq -r ".results[$k]" findings.json);
61
message=$(jq -r '.extra.message' \<<< "$value");
62
path=$(jq -r '.path' \<<< "$value");
63
line=$(jq -r '.start.line' \<<< "$value");
64
reference=$(jq -r '.extra.metadata."semgrep.url"' \<<< "$value");
65
semgrep_policy=$(jq -r '.extra.metadata."semgrep.policy".slug' \<<< "$value");
66
- findings_summary="$(jq --arg val "$k" .results += [$message])"
67
echo $message
68
echo $path
69
echo $line
0 commit comments