Comments (13)
Related to #60
As a general rule, we would recommend you bind to the major tag (@v1), otherwise you run the risk of your workflows breaking as we make changes.
We are looking into this issue.
from checkout.
Thank you @thboop for your response.
I modify my mail.yml to have only one step (like you wrote).
In My GitHub_PAT I signed all the scopes.
But still getting this error##[error]fatal: could not read Username for 'https://github.com': terminal prompts disabled ##[warning]Git fetch failed with exit code 128, back off 4.193 seconds before retry.
Do I need to modify something on the private repository\organization in order to support it?
Hey @zivkaziv, you need add your pat as a secret named GitHub_PAT
under settings on the repository in the secrets tab. You may need elevated permissions on the repo to access settings and the secrets tab. There are instructions on how to set a secret here
from checkout.
Hey,
I'm trying to checkout different private repository using the following configuration
- name: Checkout server
uses: actions/checkout@v1
with:
repository: <account>/<repo>
ref: refs/heads/master
token: ${{ secrets.GitHub_PAT }}
And I'm getting this error too
##[error]fatal: could not read Username for 'https://github.com': terminal prompts disabled
Is it relted too?
Please help...
from checkout.
@zivkaziv I guess changing url from https to ssh link to repo should help in your case. But yes, it is related.
from checkout.
Thank you for the quick answer..
Do you mean running something like this?
run: echo -e '[url "[email protected]:"]\n insteadOf = "https://github.com/[email protected]:"' >> ~/.gitconfig
from checkout.
I think git remote set-url origin [email protected]:user/repo.git
. Oh but in github actions it can not work. You can always use https://[email protected]/user/repo.git
to set an user.
from checkout.
Sorry for being so junior:)
Is it instead of uses: actions/checkout@v1
?
from checkout.
Do you have this issue on uses: actions/checkout@v1
?
It is not instead.
Generally with https://github.com/user/repo.git
there is no username info.
With https://[email protected]/user/repo.git
it is username. Also with [email protected]:user/repo.git
.
In my case the solution was actions/checkout@v1
with https://github.com/user/repo.git
instead of actions/checkout@master
. But I was solving submodules issue.
from checkout.
So do you mean to set the step something like this?
- name: Checkout server
uses: actions/checkout@v1
with:
repository: https://[email protected]/user/repo.git
ref: refs/heads/master
token: ${{ secrets.GitHub_PAT }}
And yes. actions/checkout@v1
didn't solve it in my case
from checkout.
yes, or [email protected]:user/repo.git
. I didn't try your case. One of this should work.
from checkout.
Well.. Unfortunately it didn't work.. It seems that I have to use SSH for it
from checkout.
@zivkaziv, I've been trying to reproduce your issue but have been unable to do so. Could you please try the following:
- uses: actions/checkout@v1
with:
repository: myAccount/myRepository #For example thboop/test-repo
ref: refs/heads/master
token: ${{ secrets.GitHub_PAT }}
and make sure you have the secret GitHub_PAT
set in your secrets and ensure it has the correct reading permissions
from checkout.
Thank you @thboop for your response.
I modify my mail.yml to have only one step (like you wrote).
In My GitHub_PAT I signed all the scopes.
But still getting this error
##[error]fatal: could not read Username for 'https://github.com': terminal prompts disabled
##[warning]Git fetch failed with exit code 128, back off 4.193 seconds before retry.
Do I need to modify something on the private repository\organization in order to support it?
from checkout.
Related Issues (20)
- Rest Api
- bug: sparse-checkout checks out undefined paths HOT 2
- patch-diff.githubusercontent.com/raw/paypal-examples/docs-examples/pull/121.patch
- Getting Error in "Determining the checkout info" step of actions/[email protected] HOT 1
- Checkout action with branch as ref not consistent through workflow
- tag checkout action overwrites tag with pointed-to commit
- Feature request: add cacheing
- Code signing key has expired
- checkout not overriding GITHUB_SHA
- Epicrepairs
- Need
- Last release failing due to sparse-checkout HOT 8
- 4.1.2 enables sparse-checkout on builds that didn't ask for it HOT 1
- Can I check out a new branch?
- Why don't you write the default value in the `description` in the `inputs` options?
- Improve error reporting for no such reference
- Improve error reporting for repository reference with `@`
- fetch-tags=true do not work when fetch-depth > 0 HOT 3
- action/checkout HOT 1
- actions/checkout@v4 does not work on self-hosted ubuntu 22.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from checkout.