Skip to content

fix: Add access_token for create_from_repo as well#752

Closed
anantjain-xyz wants to merge 1 commit intocodegen-sh:developfrom
anantjain-xyz:develop
Closed

fix: Add access_token for create_from_repo as well#752
anantjain-xyz wants to merge 1 commit intocodegen-sh:developfrom
anantjain-xyz:develop

Conversation

@anantjain-xyz
Copy link
Copy Markdown

Motivation

Running into authentication error here on my side project:

  cmdline: git clone -v --depth=1 -- https://github.com/anantjain-xyz/agent.git /tmp/codegen/agent
  stderr: 'Cloning into '/tmp/codegen/agent'...
fatal: could not read Username for 'https://github.com': No such device or address
'
2025-03-05 04:53:28,972 - codegen.git.repo_operator.repo_operator - ERROR - Please authenticate with a valid token and ensure the repository is properly initialized.

Content

Make sure that the access_token is passed for the create_from_repo method as well, especially when you don't want GITHUB_TOKEN to be part of secrets config.

Testing

Please check the following before marking your PR as ready for review

  • I have added tests for my changes
  • I have updated the documentation or added new documentation as needed

@anantjain-xyz anantjain-xyz requested review from a team and codegen-team as code owners March 5, 2025 06:31
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 5, 2025

CLA assistant check
All committers have signed the CLA.

@anantjain-xyz
Copy link
Copy Markdown
Author

Seems to be fixed here: #771

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.

2 participants