Skip to content

Commit 0d80858

Browse files
fix: use --bare and --tools in health probe CLI check (#489)
The "Verify Claude CLI" step fails on the CI runner because Claude Code tries to initialize keychain, LSP, plugins, and CLAUDE.md discovery before making the API call. On a bare runner these resources don't exist, causing exit code 1. - Add --bare to skip all initialization and force ANTHROPIC_API_KEY auth - Add --tools "" to disable tool definitions (health check doesn't need them, and this avoids sending a large payload to the gateway)
1 parent d43ac1c commit 0d80858

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/agentic-ci-health-probe.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,13 @@ jobs:
8787
8888
echo "Claude CLI version: $(claude --version 2>&1 || true)"
8989
90-
# Run a minimal prompt to verify auth + model + tool usage work end-to-end
90+
# Run a minimal prompt to verify auth + model work end-to-end
9191
RESULT=$(claude \
92+
--bare \
9293
--model "$MODEL" \
9394
-p "Reply with exactly: HEALTH_CHECK_OK" \
9495
--max-turns 1 \
96+
--tools "" \
9597
--output-format text \
9698
2>&1) || {
9799
echo "::error::Claude CLI failed"

0 commit comments

Comments
 (0)