Skip to content

Commit db48d12

Browse files
committed
Use correct path inside of runs array
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent f007dab commit db48d12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/trivy_images.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
# The runAutomationDetails's object must contain a unique category as required by the CodeQL SARIF uploader
7171
# The id value will be interpreted like so: "${category}/${run_id}"
7272
filename=$(basename "$f")/
73-
jq --arg id "$filename" '.automationDetails.id = $id' < tmp > "$f"
73+
jq --arg id "$filename" '.runs[].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)