Skip to content

Commit 966956b

Browse files
report schema
1 parent 5631579 commit 966956b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,21 @@ jobs:
8989
claude_args: |
9090
--allowedTools Bash,Read,Write,Edit,Glob,Grep
9191
--model claude-sonnet-4-6
92+
--json-schema '{"type":"object","properties":{"report":{"type":"string","description":"Full vulnerability triage report in markdown format"}},"required":["report"]}'
9293
prompt: |
9394
You are a security engineer triaging a Trivy vulnerability scan for the Sourcebot Docker image.
94-
95+
9596
## Your Task
96-
97+
9798
Your task is to read and analyze the Trivy scan results in `trivy-results.txt`. You should group
98-
CVEs into the minimum set of actionable remidation items. Many CVEs can share a signle remidation
99+
CVEs into the minimum set of actionable remediation items. Many CVEs can share a single remediation
99100
item. Read files such as `Dockerfile`, `package.json` and `go.mod` to gather information about
100101
dependencies within Sourcebot. Use `yarn why <package> --recursive` to determine why a given
101-
npm package is being included. Report your findings in a concise and readible format for a engineer
102+
npm package is being included. Report your findings in a concise and readable format for an engineer
102103
to review.
103104
105+
Return your full report as markdown in the `report` field.
106+
104107
- name: Write job summary
105-
run: echo "${{ steps.claude.outputs.conclusion }}" >> "$GITHUB_STEP_SUMMARY"
108+
run: |
109+
echo '${{ steps.claude.outputs.structured_output }}' | jq -r '.report' >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)