Skip to content
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

Fails to copy to a private repo. #64

Open
oianj opened this issue Jun 17, 2022 · 1 comment
Open

Fails to copy to a private repo. #64

oianj opened this issue Jun 17, 2022 · 1 comment

Comments

@oianj
Copy link

oianj commented Jun 17, 2022

I get: remote: Repository not found. But the repo can be accessed via my organization. I even forked this repo to put it inside my org thinking that might do the trick and got nothing. I've set the API_TOKEN_GITHUB, the path to the repo is correct but still it doesn't work. I feel like there's something simple I'm missing here. It used to work and just stopped one day.. one day well before I started this job :) If anyone has any advice here I'd love to have it. Thanks!

@victor10x
Copy link

Same issue here:

+ echo 'Cloning destination git repository'
+ git config --global user.email user@domain
+ git config --global user.name gh_username
+ git clone --single-branch --branch 'cicd/k8s-tooling_${github.run_number}' ***github.com/MyOrg/kubernetes-deployments.git /tmp/tmp.oPblFC
Cloning into '/tmp/tmp.oPblFC'...
remote: Repository not found.
fatal: repository 'https://github.com/MyOrg/kubernetes-deployments.git/' not found

The repo definitely exists, and I can confirm that the gh_username referenced above has access. I am using

env:
  API_TOKEN_GITHUB: ...

with that user's PAT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants