-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
implement alternative to allow pull with github token #278
Conversation
Git config
Interesting approach! And thank you for your PR. Please allow us some time to discuss if we want to support this kind of behaviour and whether it would be in this shape. In the meantime, have you considered this approach? #256 |
Sure. i just needed something that worked better in our setup where we have local settings for the packages where they are accessed using https while in the CI setup we needed to use tokens |
@webbertakken i did consider #256 but did not entirely get that to work so i spent some time to try to get the token approach to work since that would better support when the manifest.json have none ssh based urls which we have. |
@mad01 I try to use your action but I got this error while the container try to pull repo:
Any Idea? I try to pull the repo with personal access token on my local machine without any issue |
I have no idea. i am using it atm and it works to build. here is a example of how it looks for me. A note is that i have only tested this change with unity 2018. We also have all of the internal packages in
|
else | ||
echo "GIT_PRIVATE_TOKEN is set configuring git credentials" | ||
|
||
git config --global credential.helper store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small indentation differences here, not a big problem tho ;)
I don't have too much context here, but this change looks good to me. We'll have to update branch and regenerate Merging this would also require some documentation update, but I think it's a good step forward 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with everything @GabLeRoux said
Agreed then. @mad01 If you could rebase this on our main branch and regenerate the dist files we can run the checks and merge it. |
Will there be something similar for test runner? |
@rYuuk as we've agreed to move forward with this, you're welcome to port the changes to test-runner as well. The code of test-runner looks very similar or the same in most places. |
@mad01 Can you pull from the main branch and rebuild? |
Codecov Report
@@ Coverage Diff @@
## main #278 +/- ##
==========================================
+ Coverage 56.10% 56.21% +0.11%
==========================================
Files 23 23
Lines 770 772 +2
Branches 154 155 +1
==========================================
+ Hits 432 434 +2
Misses 337 337
Partials 1 1
|
I went ahead and merged with #296 |
Changes
implementation allowing you to pass github token as suggested in #161 to handle windows/linux/macos and github action envs.
Checklist