Skip to content

fix: configure git auth before tag branch setup#1340

Open
2830500285 wants to merge 1 commit into
anthropics:mainfrom
2830500285:fix-persist-credentials-false-fetch
Open

fix: configure git auth before tag branch setup#1340
2830500285 wants to merge 1 commit into
anthropics:mainfrom
2830500285:fix-persist-credentials-false-fetch

Conversation

@2830500285
Copy link
Copy Markdown

Summary

  • configure tag-mode git authentication before setupBranch() performs any git fetch origin ...
  • keep the existing signing/API-signing branch behavior otherwise unchanged
  • add a regression test that asserts auth setup runs before branch setup

Fixes #1236.

Validation

  • bun test test/modes/tag.test.ts
  • bun run typecheck
  • npx prettier --check src/modes/tag/index.ts test/modes/tag.test.ts

Note: full bun test was attempted locally on Windows after installing dependencies via npm fallback because bun install failed with EINVAL: Invalid argument (NtSetInformationFile()); the full suite has existing Windows-specific symlink/path/0600-mode/image fixture failures unrelated to this tag-mode change. The targeted test and typecheck pass locally.

Configure tag-mode git authentication before setupBranch so checkout setups with persist-credentials: false do not fail on the first origin fetch.

Fixes anthropics#1236.

Co-authored-by: Codex <noreply@openai.com>
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.

claude-code-action fails when actions/checkout uses persist-credentials: false

1 participant