Skip to content

[Amber] Fix: GITHUB_TOKEN env var not updated after credential refresh, breaking all gh CLI operations#1137

Open
github-actions[bot] wants to merge 1 commit intomainfrom
amber/issue-1135-github-token-env-var-not-updated-after-credential-
Open

[Amber] Fix: GITHUB_TOKEN env var not updated after credential refresh, breaking all gh CLI operations#1137
github-actions[bot] wants to merge 1 commit intomainfrom
amber/issue-1135-github-token-env-var-not-updated-after-credential-

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 1, 2026

Automated Fix by Amber Agent

This PR addresses issue #1135 using the Amber background agent.

Changes Summary

  • Action Type: auto-fix
  • Commit: 1a24915
  • Triggered by: Issue label/command

Pre-merge Checklist

  • All linters pass
  • All tests pass
  • Changes follow project conventions (CLAUDE.md)
  • No scope creep beyond issue description

Reviewer Notes

This PR was automatically generated. Please review:

  1. Code quality and adherence to standards
  2. Test coverage for changes
  3. No unintended side effects

🤖 Generated with Amber Background Agent

Closes #1135

Install a gh CLI wrapper script in /tmp/.ambient-bin and prepend that
directory to PATH before the Claude Code subprocess spawns. The wrapper
reads /tmp/.ambient_github_token on every invocation so mid-run
credential refreshes propagate to gh CLI operations even after the
subprocess environment is fixed at spawn time. This mirrors the existing
git credential helper approach already used for git operations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GITHUB_TOKEN env var not updated after credential refresh, breaking all gh CLI operations

1 participant