Skip to content

Commit f007dab

Browse files
committed
Fix JSON according to json schema validation
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 7e7e83b commit f007dab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/trivy_images.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ jobs:
6767
- run: |
6868
for f in "sarif/${{ matrix.artifact }}/"*; do
6969
jq '.runs[].tool.driver.name = "trivy-images"' < "$f" > tmp
70-
# The runAutomationDetails's id field must contain a unique category as required by the CodeQL SARIF uploader
71-
# This value will be interpreted like so: "${category}/${run_id}"
70+
# The runAutomationDetails's object must contain a unique category as required by the CodeQL SARIF uploader
71+
# The id value will be interpreted like so: "${category}/${run_id}"
7272
filename=$(basename "$f")/
73-
jq --arg id "$filename" '.runAutomationDetails.id = $id' < tmp > "$f"
73+
jq --arg id "$filename" '.automationDetails.id = $id' < tmp > "$f"
7474
done
7575
- uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
7676
with:

0 commit comments

Comments
 (0)