Skip to content

fix(#880): rename github-artifacts credential key to avoid collision - #881

Closed
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/880-fix-duplicate-credential-key
Closed

fix(#880): rename github-artifacts credential key to avoid collision#881
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/880-fix-duplicate-credential-key

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

  • Renames the credential key in providers/github-artifacts.yaml from GH_TOKEN to GH_TOKEN_ARTIFACTS to eliminate the duplicate credential key collision that prevents the retro agent sandbox from being created.
  • The underlying secret value (${GH_TOKEN}) is unchanged — only the key name that OpenShell's proxy uses to track the credential is different.
  • The gh CLI still receives GH_TOKEN via the harness forge.github.env.sandbox block, so CLI functionality is preserved.

Context

Introduced in #211 (refactor: migrate to local-path providers and profiles). The retro agent is the only agent attaching two GitHub providers (github-ro + github-artifacts), so it was the only one triggering the conflict. This fix also prevents the same collision for any future harness that combines multiple GitHub providers.

Testing

  • Verified the change is limited to renaming the credential key — no other files reference github-artifacts.yaml credentials by key name.
  • Ran make test — all test suites pass (10 pre-existing failures in post-retro-test.sh are unrelated to this change and exist on main).
  • Secret scan passed on both changed files and staged content.

Closes #880

Post-script verification

  • Branch is not main/master (agent/880-fix-duplicate-credential-key)
  • Secret scan passed (gitleaks — 816b89be3a8d129cb9305ae492d4af145d6ac25a..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

The retro agent sandbox creation fails because both github-ro and
github-artifacts providers declare GH_TOKEN as their credential key.
OpenShell rejects sandboxes where two providers inject the same
credential env key.

Rename the credential key in github-artifacts from GH_TOKEN to
GH_TOKEN_ARTIFACTS. The underlying secret value (${GH_TOKEN}) is
unchanged — only the key name the proxy uses to track the credential
is different. The gh CLI still receives GH_TOKEN via the harness
forge.github.env.sandbox block, so CLI functionality is preserved.

Note: pre-commit could not run (sandbox network policy blocked
git fetch during hook environment setup). The post-script runs
pre-commit authoritatively on the runner.

Closes #880
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner August 19, 2026 13:15
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Aug 19, 2026
@maruiz93

Copy link
Copy Markdown
Contributor

This won't work correctly gh uses gh_token env var, no the renamed one, I'm working on a better woraround. Closing.

@maruiz93 maruiz93 closed this Aug 19, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Aug 19, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:17 PM UTC · Completed 1:28 PM UTC

Commit: 9e10a5a · View workflow run →

@fullsend-ai-review

Copy link
Copy Markdown

Review skipped — this PR is already closed.

The /fs-review command only reviews open pull requests.

Posted by fullsend pre-review check

@fullsend-ai-retro

fullsend-ai-retro Bot commented Aug 19, 2026

Copy link
Copy Markdown

🤖 Finished Retro · ❌ Failure · Started 1:18 PM UTC · Completed 1:19 PM UTC

Commit: 9e10a5a · View workflow run →

@fullsend-ai-review

Copy link
Copy Markdown

Review skipped — this PR is already closed.

The /fs-review command only reviews open pull requests.

Posted by fullsend post-review check

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

Labels

ready-for-review Triggers review agent dispatch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: retro agent sandbox creation fails — duplicate GH_TOKEN credential key across providers

1 participant