-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Checkout with submodules? #81
Comments
@DethRaid make sure to pin to |
I actually made a PR to do just that: NovaMods/nova-renderer#225 It's really great when I merge a PR that had no CI failures, only for master to have CI failures because GitHub removed a feature I was using I guess it's my own fault for not using a specific version of this Action but it still sucks |
Are there plans to support submodules in v2? Of course, for now I'll stick with v1. |
Submodules with SSH checkout would be great |
Hey @ericsciple! Thanks for your fixes in #112. In our organization we have to deal with submodules a lot and thus I would like to kindly ask why the shortcut of
easy to use considering that I maintain many repositories. Would it be possible to revive the |
good feedback @chrispat fyi |
@ericsciple, @chrispat, any updates about this issue? Did you consider to reopen it? |
reopening and mark as enhancement for consideration |
whaaat, v2 not supported submodules! actions/checkout#81
This only seems to work for submodules using https.
I need it to work via SSH. Anyone knows how to make this work with SSH? |
@marcofranssen you can use https://github.com/marketplace/actions/webfactory-ssh-agent to spawn an |
@webknjaz thanks, will give that a try as well. I finally managed to fix it by replacing the ssh with https address as explained in https://github.com/actions/checkout/pull/140/files |
Just to provide some background context. We chose to leave submodules out of the v2 rewrite for two main reasons. First because Actions is a per repository app installation the default token does not provide access to other private repositories even in the the same org or account. Second many developers configured their submodules to use SSH instead of HTTPS and in that case even public submodules would fail. As such we decided to take a step back and see what options we had to provide a better support for public and private submodules using HTTPS or SSH. Unfortunately the developer who had been working on this issue had to take some unexpected time off to attend to a family matter. He is back now and you should expect to see an update coming to the repo with our proposal for how we would like to add this functionality back. We look forward to the communities comments on the pull request. |
Is it expected to be a fix to v2 or a new v3? |
Since it should just be additive it will be an update to v2. |
Opened a PR to propose SSH support here which will help for users scripting submodule checkout. Will open a separate proposal shortly for a first-class |
A related problem with Rust is echo 'https://USERNAME_OF_PAT:${{secrets.GITHUB_PAT}}@github.com' >~/.git-credentials
git config --global credential.helper store
cargo test Worked like a charm! Can |
revert due to need for submodules actions/checkout#81
An input Also I'm hoping to merge support for SSH soon. |
I created a new issue to collect feedback on the |
Thanks all for the feedback! I updated V2 to include the recent submodule/SSH changes from master. |
How do I checkout with submodules?
Before the most recent commit to master (e347bba) I could use
submodules:true
to checkout with submodules.. but it looks like yalls just removed that?This change caused my most recent Actions checks (https://github.com/NovaMods/nova-renderer/runs/331364250) to fail to checkout
Unless I'm missing something, it seems that yalls updated the checkout action to not support submodules and that broke my Actions check
The text was updated successfully, but these errors were encountered: