Coder Social home page Coder Social logo

Comments (13)

thboop avatar thboop commented on June 18, 2024 1

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.

thboop avatar thboop commented on June 18, 2024 1

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.

zivkaziv avatar zivkaziv commented on June 18, 2024

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.

kwladyka avatar kwladyka commented on June 18, 2024

@zivkaziv I guess changing url from https to ssh link to repo should help in your case. But yes, it is related.

from checkout.

zivkaziv avatar zivkaziv commented on June 18, 2024

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.

kwladyka avatar kwladyka commented on June 18, 2024

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.

zivkaziv avatar zivkaziv commented on June 18, 2024

Sorry for being so junior:)
Is it instead of uses: actions/checkout@v1?

from checkout.

kwladyka avatar kwladyka commented on June 18, 2024

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.

zivkaziv avatar zivkaziv commented on June 18, 2024

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.

kwladyka avatar kwladyka commented on June 18, 2024

yes, or [email protected]:user/repo.git. I didn't try your case. One of this should work.

from checkout.

zivkaziv avatar zivkaziv commented on June 18, 2024

Well.. Unfortunately it didn't work.. It seems that I have to use SSH for it

from checkout.

thboop avatar thboop commented on June 18, 2024

@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.

zivkaziv avatar zivkaziv commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.