Skip to content

Commit 309f421

Browse files
authored
Update build.yml
Signed-off-by: Nedelcho Delchev <delchevn@gmail.com>
1 parent d89b95b commit 309f421

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,10 @@ jobs:
263263
summary: true
264264
only-fixed: false
265265

266-
- name: Trim SARIF to satisfy GitHub limit (max 1000 relatedLocations)
266+
- name: Trim SARIF to satisfy GitHub limit (remove relatedLocations)
267267
run: |
268-
jq '(.runs[].results[] |=
269-
if .relatedLocations and (.relatedLocations | length) > 1000
270-
then .relatedLocations = (.relatedLocations[:1000])
271-
else .
272-
end
273-
)' sast_docker_scout_sarif.json > sast_docker_scout_sarif_trimmed.json
268+
jq 'del(.. | .relatedLocations?)' sast_docker_scout_sarif.json \
269+
> sast_docker_scout_sarif_trimmed.json
274270
275271
- name: Upload Docker Scout SARIF file as artifact
276272
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)