Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create apps from a different git provider than the destination. #596

Open
lesomnus opened this issue Sep 19, 2024 · 1 comment

Comments

@lesomnus
Copy link
Contributor

Auume GIT_REPO is Azure DevOps (and GIT_TOKEN is for Azure DevOps oviously) and if the user tries to create app from GitHub, the credential for Azure DevOps is used to clone the repo frmo GitHub, resuling an error: "authentication required".

Reproduce

export GIT_REPO=https://[email protected]/org/proj/_git/repo
export GIT_TOKEN=accesstokenforazuredevops
argocd-autopilot --log-level debug  \
	app create demoapp \
	--app github.com/argoproj-labs/argocd-autopilot/examples/demo-app/ \
	-p testing
> ...
> INFO[2024-09-19T05:19:40Z] cloning repo: 'https://github.com/argoproj-labs/argocd-autopilot.git', to infer app type from path 'examples/demo-app/' 
> DEBU[2024-09-19T05:19:40Z] cloning git repo                              url="https://github.com/argoproj-labs/argocd-autopilot.git"
> FATA[2024-09-19T05:19:40Z] authentication required 
@lesomnus lesomnus changed the title Unable to build apps from a different git provider than the destination. Unable to create apps from a different git provider than the destination. Sep 19, 2024
@lesomnus
Copy link
Contributor Author

How about to retrieve the credentials from git credential store rather than env?

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

No branches or pull requests

1 participant