-
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
possible to checkout or clone another repo? #24
Comments
Yes, you can
|
I tried to clone another private repository with the action but I only get:
step: - name: Check out my other private repo
uses: actions/checkout@master
with:
repository: orgname/reponame I tried to pass the github token but doesn't change the outcome. |
@maxperrimond try to generate a PAT and set that as repository secret, use that to clone the extra repository, the GITHUB_TOKEN is scope to the workflow repo. - name: Check out my other private repo
uses: actions/checkout@master
with:
repository: orgname/reponame
token: ${{ secrets.my_pat }} |
It worked well. Thanks for your support @TingluoHuang |
Thanks |
If it's from another source outside of github do we use the full URL? |
I want to clone multiple repos for together build. How to prevent deleting of prev-cloned repo? |
Yeeeeah! Solved! |
@hohserg1 can you elaborate on how you solved it? Can you share youre |
@orelviz yes. |
@rogerprz did you get it to work with a repo outside of github.com? |
I am also wondering if we can clone from another domain besides the one where this action is called. In my case, the domain is githubdev, and I want to clone from regular old github.com. Currently, this action appends the githubdev domain to the |
@hohserg1 How did you manage to get the clone persistent? |
Can we checkout or clone a gitlab repo? |
Does anyone have a simple example of using both path and clean: false, when trying to checkout another repo at the same level as the currently building repo? |
+1 asking a same questions |
This is for anyone coming here from a Google search. If you receive the following error when trying to clone a public git repo with Github Actions (whether it's on Github or Gitlab or elsewhere):
You need to configure git to clone using HTTPS, and not SSH:
Example:
|
|
trying to clone LasZipNetStandard actions/checkout#24
I see multiple people asking whether custom git URL's can be checked out but don't think anyone posted a solution. Has anyone figured this out? |
Doesn't work with the latest fine grained token access. Had to do a classic token generation method. Ref #1796 |
Can we do this without PAT? |
I noticed the documentation for
actions
says I can't call an action in another private repo that I own. I have a different question. Is it possible to use the checkout action (of my repo) to checkout a public repo, or a private repo owned by me? This would be useful for pulling the latest version of C++ boost header libraries, or another library I wrote that's needed for the build.The text was updated successfully, but these errors were encountered: