Using this action with private repositories and registries
See original GitHub issueHi!
This issue might have nothing to do with this action itself, just my lack of understanding of how actions work. Maybe it is a request for new documentation or sample?
So my setup is that I have a repository called vcpkg-registry
. I have configured a couple of vcpkg ports there, and in my main application project I have setup that registry to be used as a source for my shared library project. All of these repos are private. Now when I attempt to use my pipeline (that is pretty much copy paste the hosted-basic
example) I of course get this error:
Fetching baseline information from https://github.com/lerppana/vcpkg-registry...
Error: Couldn't find baseline "89f7510a4c0431b03a4012ec7011986b0b1dd150" for repo https://github.com/lerppana/vcpkg-registry:
fatal: not a git repository: 'C:\Users\runneradmin\AppData\Local\vcpkg\registries\git\.git'
Error: Failed to fetch https://github.com/lerppana/vcpkg-registry:
Error: Failed to fetch ref 89f7510a4c0431b03a4012ec7011986b0b1dd150 from repository https://github.com/lerppana/vcpkg-registry.
fatal: Cannot prompt because user interactivity has been disabled.
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': No such file or directory
So my question is if this action is able to use private repo registries? Is it just matter of configuring login credentials for git in runner, or is there some proper way to achieve this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
GitHub Actions: Private registry support for job and service ...
Job and Service containers in GitHub Actions allow you to containerize your CI environment and make databases, caches, or other services ...
Read more >Integrating a private registry with GitHub Actions - Bytesafe
If you are using GitHub Actions as the CI/CD service for your build chain, you may be looking for a way to include...
Read more >Amazon ECR private repositories
Amazon Elastic Container Registry (Amazon ECR) provides API operations to create, monitor, and delete image repositories and set permissions that control ...
Read more >docker - Login github package registry in private repository ...
You have to add credentials to each service where you use an image from a private repository. From the docs:.
Read more >Using Private Repositories and Registries :: Tekton Tutorial
Use Tekton Authentication Secrets. How to push linux container image to external registry. How to clone from a private Github respository ...
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
@lerppana awesome! In the future I’d like to create a sample showing vcpkg-registry working with private repos. Thanks for finding a working solution and refining it!
Thanks @lukka for pointing those threads for me, it clarified the issue for me. I picked up two different methods that were discussed there which both worked fine:
both of them work with personal access tokens, I believe method 1 allows to set PAT per repo because path is given as parameter (which could be handy). It is bash script, but works fine with windows agent for me when
shell: bash
is specified. Otherwise it tries to default to pw.EDIT: I´ll close the issue as it is now fixed.