Skip to content

Commit b93727e

Browse files
msukkariclaude
andcommitted
fix: use jq elif to avoid nested parens in string interpolation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5c9e192 commit b93727e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/trivy-vulnerability-triage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ jobs:
475475
echo "| ID | Source | Severity | Package | Linear Status |" >> "$GITHUB_STEP_SUMMARY"
476476
echo "|----|--------|----------|---------|---------------|" >> "$GITHUB_STEP_SUMMARY"
477477
478-
echo "$STRUCTURED_OUTPUT" | jq -r '.cves[] | "| \(.cveId) | \(.source) | \(.severity) | \(.affectedPackage) | \(if .linearIssueExists then (if .linearIssueClosed then "Reopen" else "Existing") else "New" end) |"' >> "$GITHUB_STEP_SUMMARY"
478+
echo "$STRUCTURED_OUTPUT" | jq -r '.cves[] | "| \(.cveId) | \(.source) | \(.severity) | \(.affectedPackage) | \(if .linearIssueClosed then "Reopen" elif .linearIssueExists then "Existing" else "New" end) |"' >> "$GITHUB_STEP_SUMMARY"
479479
480480
echo "" >> "$GITHUB_STEP_SUMMARY"
481481
echo "### Details" >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)