Fails to clone private repo when running from Actions (in same repo)
See original GitHub issueI used the Azure Kubernetes Service (AKS) Deployment Center to create my deployment pipeline from Github. Everything worked until earlier today when this message started appearing:
/usr/bin/git remote add origin https://github.com/myaccount/myprivaterepo
/usr/bin/git config --local gc.auto 0
/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +a68375c71a1bc2e93d149534598be84261d0c9ca:refs/remotes/origin/prod
remote: Repository not found.
Error: fatal: repository 'https://github.com/myaccount/myprivaterepo/' not found
The script generated by Azure has - uses actions/checkout@master
, which I thought may be deprecated. I tried a few versions to no avail.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Cloning private github repository within organisation in actions
As B is private, it fails on installing it. Is it possible to install B while testing A in this workflow if they...
Read more >possible to checkout or clone another repo? · Issue #24 - GitHub
I have a different question. Is it possible to use the checkout action (of my repo) to checkout a public repo, or a...
Read more >GitHub Actions can't access private repos? Here's how to fix it
This is the error message I was fighting for a good part of today: $ cargo check --workspace --verbose --locked Updating git repository...
Read more >Unable to git clone private repositories with Github Actions
I have 2 private repositories, A and B. Repo A is a Rust binary which depends on repo B. Until yesterday, I had...
Read more >How to access private repositories from Github Actions?
The Solution · Create 2 SSH keys for the 2 private repositories by running ssh-keygen -t ed25519 twice. · Put each public key...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are running into this error as well now… Private repository. Both checkout v2 and v3 erroring…
I’m getting exactly this error today, but for private submodules, using: