Fatal: could not read Password for 'https://***@github.com':

Hey there…

We created this action https://github.com/totvslabs/carol-build to automate the creation of images in our platform.
We have this action in some repos, and there is one repo that I am getting this error when trying to use the secrets.GITHUB_TOKEN

2020-06-15 13:28:45,675 - [DEBUG]: fatal: could not read Password for 'https://***@github.com': No such device or address

This is the action I am using

name: Build docker image on Carol

    - '*'
    runs-on: ubuntu-latest
    - uses: actions/checkout@v2
    - name: Build
      uses: totvslabs/carol-build@master
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        carol-tenant: 'asd'
        carol-organization: 'asd'
        carol-app-name: 'asd'
        carol-connector-id: ${{ secrets.CAROLCONNECTORID }}
        carol-api-key: ${{ secrets.CAROLAPPOAUTH }}
        manifest-path: '.'
    runs-on: ubuntu-latest
    - name: Checkout code
      uses: actions/checkout@v2
    - name: Create Release
      id: create_release
      uses: actions/create-release@v1
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 
        tag_name: ${{ github.ref }}
        release_name: Release ${{ github.ref }}
        body: |
          Release ${{ github.ref }}
        draft: false
        prerelease: false

Basically this will start a build process inside the platform. This used to work. It stopped. Has Github changed something with the TOKENs?

Hi @rafarui,

Glad to see you in Github Community Forum!

AFAIK, there is no change for the GITHUB TOKEN, if it used to work, could you please try again?
Is the issue repository private? what about change it to public?
If the issue persists, please create a secrets based on a personal access token, use it instead of GITHUB_TOKEN for a try.

I cannot reproduce the error since i don’t have the CAROL secrets, could you please share a sample repo for further investigation?


1 Like

With the repo opened it works. doest it work for private repos?

Hi @rafarui,

Thanks for your reply. I cannot verify the action since i don’t have CAROL secrets. Could you please enable debug logging and provide the error logs?


How can I send the logs? I dont see anything that could help though.

One question that is not clear from the documentation. What we do with this action. The platform has an API that allows us to send a manifest file, with a github repo and it will build the docker image. We pass this github token to the platform to be able to clone the repo. Is this the problem? this token does not have permissions outside the action scope?


Hi @rafarui,

Thanks for your reply!

You can create a new private repository, reproduce the issue in the workflow, and then convert the repo to public and share the workflow link here.

For private repository, do you use below format to clone?

git clone https://name:password@github.com/org/repo.git