Skip to content

fix: authenticate OpenCode cross-repository pushes - #22

Merged
PANDAJSR merged 1 commit into
masterfrom
fix/opencode-cross-repo-auth
Sep 5, 2026
Merged

fix: authenticate OpenCode cross-repository pushes#22
PANDAJSR merged 1 commit into
masterfrom
fix/opencode-cross-repo-auth

Conversation

@PANDAJSR

@PANDAJSR PANDAJSR commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • verify the private relay repository is reachable with the cross-repository token
  • configure Git credentials from SECTL_SECAGENT_GITHUB_TOKEN before OpenCode starts
  • preserve GITHUB_TOKEN for primary repository Actions API operations and GH_TOKEN for target repository Git/CLI operations

Root cause

The latest retries could inspect and edit external repositories, but failed while pushing the generated branch:

fatal: Authentication failed for https://github.com/SECTL/SecAgent/

GH_TOKEN was present for the agent process, but Git did not have a credential helper/header configured for its automatic push. This change configures authenticated Git in the runner before OpenCode starts.

Validation

  • SECTL_SECAGENT_GITHUB_TOKEN can access SECTL/secagent-official-relay
  • workflow YAML parsed successfully
  • git diff --check passed

@PANDAJSR
PANDAJSR merged commit 22f6e86 into master Sep 5, 2026
3 checks passed
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