From 5342a9c5f97bb9572bac6dd4e2b95599a2f209c4 Mon Sep 17 00:00:00 2001 From: claude Date: Tue, 29 Jul 2025 19:39:40 +0000 Subject: [PATCH] Fix OAuth detection in prepare.ts The OAuth setup was checking for ANTHROPIC_API_KEY === 'use-oauth', but the modified action.yml sets it to empty string when using OAuth. Updated to check for empty API key instead. This allows the OAuth credentials to be properly written to the container when using Claude Code MAX authentication. --- src/entrypoints/prepare.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entrypoints/prepare.ts b/src/entrypoints/prepare.ts index 774e335..fda8119 100644 --- a/src/entrypoints/prepare.ts +++ b/src/entrypoints/prepare.ts @@ -26,7 +26,8 @@ async function run() { const claudeCredentials = process.env.CLAUDE_CREDENTIALS; const anthropicApiKey = process.env.ANTHROPIC_API_KEY; - if (claudeCredentials && anthropicApiKey === "use-oauth") { + // Check if OAuth credentials are provided and API key is empty (OAuth mode) + if (claudeCredentials && !anthropicApiKey) { await setupOAuthCredentials(claudeCredentials); console.log( "OAuth credentials configured for Claude AI Max subscription",