question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to clone private repo when running from Actions (in same repo)

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
MisterTimncommented, Jun 3, 2022

We are running into this error as well now… Private repository. Both checkout v2 and v3 erroring…

1reaction
TamaMcGlinncommented, Jun 24, 2021

I’m getting exactly this error today, but for private submodules, using:

      - uses: actions/checkout@v2
        with:
            submodules: recursive
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found