From 8f0a7fe9d35c92432ae635cdfd1d10a13862bcc6 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Mon, 18 Aug 2025 15:50:27 -0700 Subject: [PATCH] clarify workflow validation message (#463) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the workflow validation message to be more specific about when Claude Code workflows will start working, providing clearer guidance to users experiencing this validation error. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- src/github/token.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/github/token.ts b/src/github/token.ts index da30285..6cb9079 100644 --- a/src/github/token.ts +++ b/src/github/token.ts @@ -42,17 +42,14 @@ async function exchangeForAppToken(oidcToken: string): Promise { // Check for specific workflow validation error codes that should skip the action const errorCode = responseJson.error?.details?.error_code; - if ( - errorCode === "workflow_not_found_on_default_branch" || - errorCode === "workflow_content_mismatch" - ) { + if (errorCode === "workflow_not_found_on_default_branch") { const message = responseJson.message ?? responseJson.error?.message ?? "Workflow validation failed"; core.warning(`Skipping action due to workflow validation: ${message}`); console.log( - "Action skipped due to workflow validation error. This is expected when adding Claude Code workflows to new repositories or on PRs with workflow changes.", + "Action skipped due to workflow validation error. This is expected when adding Claude Code workflows to new repositories or on PRs with workflow changes. If you're seeing this, your workflow will begin working once you merge your PR.", ); core.setOutput("skipped_due_to_workflow_validation_mismatch", "true"); process.exit(0);