Skip to content

ci: skip live Claude tests without federation vars#1438

Open
tarunag10 wants to merge 1 commit into
anthropics:mainfrom
tarunag10:codex/skip-live-tests-without-federation
Open

ci: skip live Claude tests without federation vars#1438
tarunag10 wants to merge 1 commit into
anthropics:mainfrom
tarunag10:codex/skip-live-tests-without-federation

Conversation

@tarunag10

Copy link
Copy Markdown
Contributor

Summary

  • Skip live Claude API self-test jobs when workload identity federation repository variables are unavailable.
  • Keep the live tests running for internal runs where ANTHROPIC_FEDERATION_RULE_ID and ANTHROPIC_ORGANIZATION_ID are configured.

Why

Fork PR runs do not receive the repository variables required by the live Claude API self-test workflows. Those jobs currently fail during action environment validation before testing the changed code:

  • missing ANTHROPIC_API_KEY / CLAUDE_CODE_OAUTH_TOKEN; and
  • missing workload identity federation variables.

This makes otherwise valid fork PRs look red for a reason contributors cannot fix. The guard lets those jobs skip cleanly when the required federation variables are absent, while preserving the full live test coverage for configured internal runs.

Validation

  • npx --yes prettier --check .github/workflows/test-base-action.yml .github/workflows/test-custom-executables.yml .github/workflows/test-mcp-servers.yml .github/workflows/test-settings.yml .github/workflows/test-structured-output.yml
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant