Open tobey74 opened 3 weeks ago
Thank you for posting an issue, I will be investigating this.
@tobey74 I have made a fix for this, I haven't had the time to test this. This will probably come some time next week. Or if you might have some time please check if this works.
@WhiteOlivierus Hi Olivier, I have tried connecting to GitHub with your updated code but without luck I'm sorry :) Your latest NuGet push failed so I tried cloning your code locally but even then I cannot find a way to assign the GitConfigBuilder with my Username and Password set to a RepositoryConfigBuilder because the GitConfig is not exposed but is private. Also, you create always a new GitConfig object on line 27 when the RepositoryConfigBuilder is build. So for the moment I don't see a way to provide the GitHub credentials - I have tried making the WithGitConfig public on line 64 but still no luck with cloning my repo.
Thanks for checking in! I’m still working on this, but since I’m handling it in my spare time, it may take a little longer. For the next three weeks, I’ll be able to respond but won’t have time to actively work on it.
That said, I’ve made some good progress. I’ve added authentication to the sample to ensure it can be accessed, and it’s now passing through the entire pipeline. So it might actually work! I still need to add a test case for this, but I haven’t had the time yet—coming soon!
Absolutely no rush from my side Olivier, I'm just looking forward to follow your project extending Aspire :)
Hi, I am trying to follow your examples from your readme to add projects from git repos to my Aspire AppHost. I have tried adding both repos from the organization I am part of and from my own GitHub account but both fails.
First I got this error:
So I added the package manually to my AppHost project:
But then builder.AddRepository throws exception remote authentication required but no callback set
I get this error no matter if I try adding repo from my private GitHub or the organization I am part of but here example with my own GitHub account and repo:
I cannot see a way how to authenticate with GitHub or provide som Credentials?
I do have my GitHub credentials stored as environment variables like GHP_TOKEN and GHP_USER.