Skip to content

fix: pass GITHUB_TOKEN to sandbox containers#203

Draft
danchild wants to merge 1 commit into
forge-sdlc:mainfrom
danchild:fix/pass-github-token-to-container
Draft

fix: pass GITHUB_TOKEN to sandbox containers#203
danchild wants to merge 1 commit into
forge-sdlc:mainfrom
danchild:fix/pass-github-token-to-container

Conversation

@danchild

Copy link
Copy Markdown
Contributor

Closes #202

Summary

  • Adds GITHUB_TOKEN to the environment variables passed to sandbox containers in ContainerRunner._build_env_vars()
  • Without this, containers can't push implementation changes to the fork, failing with a 403

Test plan

  • Trigger a bug workflow that reaches implementation and verify the container can git push to the fork
  • Verify the token is present in the container env (podman inspect with FORGE_CONTAINER_KEEP=true)

🤖 Generated with Claude Code

Containers need the GitHub token for git push operations after
implementing changes. Without it, pushes to fork repos fail with 403.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@danchild
danchild marked this pull request as draft July 24, 2026 19:51
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.

Container sandbox doesn't pass GITHUB_TOKEN, causing git push 403

1 participant