Skip to content

Commit 67e8dde

Browse files
nawi-25claude
andcommitted
fix: address code review — image src, jq injection safe payload
- restore broken README image src to original GitHub asset URL - use jq for safe JSON serialization in homebrew dispatch curl call - add --fail to curl so failed dispatch is visible in CI logs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4bf8d3d commit 67e8dde

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
- name: Notify homebrew tap
4545
run: |
4646
VERSION=$(node -p "require('./package.json').version")
47-
curl -s -X POST \
47+
curl -s --fail -X POST \
4848
-H "Authorization: token ${{ secrets.AUTO_PR_TOKEN }}" \
4949
-H "Accept: application/vnd.github.v3+json" \
5050
https://api.github.com/repos/node9-ai/homebrew-node9/dispatches \
51-
-d "{\"event_type\":\"new-release\",\"client_payload\":{\"version\":\"${VERSION}\"}}"
51+
-d "$(jq -n --arg v "$VERSION" '{event_type:"new-release",client_payload:{version:$v}}')"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ While others try to _guess_ if a prompt is malicious (Semantic Security), Node9
1616
**AIs are literal.** When you ask an agent to "Fix my disk space," it might decide to run `docker system prune -af`.
1717

1818
<p align="center">
19-
<img src="an" width="100%">
19+
<img src="https://github.com/user-attachments/assets/afae9caa-0605-4cac-929a-c14198383169" width="100%">
2020
</p>
2121

2222
**With Node9, the interaction looks like this:**

0 commit comments

Comments
 (0)