Skip to content

Commit ff91fbe

Browse files
wip on trivy triage
1 parent e00bb68 commit ff91fbe

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,37 @@ jobs:
6464
name: trivy-results
6565
path: trivy-results.txt
6666
retention-days: 30
67+
triage:
68+
name: Claude Analysis & Linear Triage
69+
needs: scan
70+
if: needs.scan.outputs.has_vulnerabilities == 'true'
71+
runs-on: ubuntu-latest
72+
steps:
73+
- name: Checkout repository
74+
uses: actions/checkout@v4
75+
with:
76+
submodules: recursive
77+
78+
- name: Download scan results
79+
uses: actions/download-artifact@v4
80+
with:
81+
name: trivy-results
82+
83+
- name: Analyze and create Linear issues
84+
uses: anthropics/claude-code-action@v1
85+
with:
86+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
87+
claude_args: |
88+
--allowed_tools Bash,Read,Write,Edit,Glob,Grep
89+
--model claude-sonnet-4-6
90+
prompt: |
91+
You are a security engineer triaging a Trivy vulnerability scan for the Sourcebot Docker image.
92+
93+
## Your Task
94+
95+
Your task is to read and analyze the Trivy scan results in `trivy-results.txt`. You should group
96+
CVEs into the minimum set of actionable remidation items. Many CVEs can share a signle remidation
97+
item. Read files such as `Dockerfile`, `package.json` and `go.mod` to gather information about
98+
dependencies within Sourcebot. Use `yarn why <package> --recursive` to determine why a given
99+
npm package is being included. Report your findings in a concise and readible format for a engineer
100+
to review.

0 commit comments

Comments
 (0)