Skip to content

Commit a86248c

Browse files
WOPRclaude
authored andcommitted
fix: write Claude credentials file for Agent SDK auth
Agent SDK reads ~/.claude/.credentials.json, not env vars. Write CLAUDE_CREDENTIALS_JSON org secret to disk before sync. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 58512c5 commit a86248c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/upstream-sync.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ jobs:
6161
npm install -g @anthropic-ai/claude-agent-sdk || npm install -g @anthropic-ai/claude-agent-sdk
6262
node -e "require('@anthropic-ai/claude-agent-sdk')" 2>/dev/null || echo "SDK import check: will resolve at runtime via global root"
6363
64+
- name: Write Claude credentials
65+
run: |
66+
mkdir -p ~/.claude
67+
echo '${{ secrets.CLAUDE_CREDENTIALS_JSON }}' > ~/.claude/.credentials.json
68+
6469
- name: Check for upstream changes
6570
id: check
6671
run: |

0 commit comments

Comments
 (0)