-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Submodules from private repositories #35
Comments
I think u need #14
CI_TOKEN is a workflow secret & a personal access token, u can configure in the settings section. |
Oh! Perfect thanks, that solved my issue :) |
You can use too: - name: Fix up git URLs
run: |
git config --global --add url."https://${{ secrets.GITHUB_SECRET }}:x-oauth-basic@github.com/".insteadOf "https://github.com/"
git config --global --add url."https://${{ secrets.GITHUB_SECRET }}:x-oauth-basic@github.com/".insteadOf "git@github.com:" |
If you are using 2fa or SAML don't forgot to enable SSO on your TOKEN from within your account settings. |
can we just use the GITHUB_TOKEN instead of the workflow secret. It should also have read permissions for the repository in the submodule right? |
Tried that, doesn't work for me. |
Apologies if this has already come up...I haven't been able to find an answer to this.
I'm attempting to setup Actions for a private GitHub repo. The repo pulls in two submodules, each of which are also private GitHub repos. My Action fails on checkout with
##[error]fatal: Could not read from remote repository.
How do I configure the checkout action with the right credentials to pull in these private submodules?
This is what I currently have for the checkout step as a starting point:
The text was updated successfully, but these errors were encountered: