question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fatal: could not read Username for 'https://github.com': No such device or address

See original GitHub issue

Thank you for such a useful action 😃. It worked well, but today I trapped on an issue.

Describe the bug Job is failed, action cannot push to repository.

Workflow used

Internal logs
  > Staging files...
  > Adding files...
  > No files to remove.
  > Checking for uncommitted changes in the git working tree...
  > Found 1 changed files.
  { raw: '', remote: null, branches: [], tags: [] }
  > Switching/creating branch...
  M	package.json
  Branch 'master' set up to track remote branch 'master' from 'origin'.
  
  > Pulling from remote...
  { raw: '', remote: null, branches: [], tags: [] }
  PullSummary {
    remoteMessages: RemoteMessageSummary { all: [] },
    created: [],
    deleted: [],
    files: [],
    deletions: {},
    insertions: {},
    summary: { changes: 0, deletions: 0, insertions: 0 }
  }
  > Re-staging files...
  > Creating commit...
  {
    author: null,
    branch: 'master',
    commit: 'd05199db',
    summary: { changes: 1, insertions: 1, deletions: 2 }
  }
  > No tag info provided.
  > Pushing commit to repo...
  Error: Error: Pushing to https://github.com/coderaiser/putout
  fatal: could not read Username for 'https://github.com': No such device or address
  
Outputs
  committed: true
  pushed: false
  tagged: false
Error: Error: Pushing to https://github.com/coderaiser/putout
fatal: could not read Username for 'https://github.com': No such device or address

Here is current config.

Expected behavior I expect that fixes will be pushed to repo.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
coderaisercommented, Feb 21, 2021

Thank you @EndBug, I’ll give it a try 😃.

1reaction
EndBugcommented, Feb 19, 2021

You could have a job that only runs tests (which in your case seem to only be running the build), and that will use the matrix strategy.

Then you can create a second job, with all the steps that you need to use to update the repo, which include my action. This second job should run only once, with no matrix.

Here’s the outline of the workflow:

jobs:
  test:
    strategy:
      matrix:
        node-version: [14.x, 15.x]
    steps:
    # checkout, node, ...

  lint:
    steps:
    # run linter, add-and-commit, ...
Read more comments on GitHub >

github_iconTop Results From Across the Web

fatal: could not read Username for 'https://github.com': No such ...
This is an issue with your stored credentials in the system credential cache. You probably have the config variable 'credential.helper' set to ...
Read more >
Fatal: Could not read Username for "https://github.com", No ...
Hello! Today I was doing the setup of a git automation inside a Docker container using hub and I ran into something that...
Read more >
Fixing could not read Username for 'https://github.com'
Fixing could not read Username for 'https://github.com': No such device or address in Jenkins. You might have a successfully executing build ...
Read more >
failed during stage 'preparing repo': error checking for ref: fatal ...
failed during stage 'preparing repo': error checking for ref: fatal: could not read Username for 'https://github.com': No such device or address Anybody ...
Read more >
Git push origin master could not read username for http ...
fatal : could not read Username for 'https://github.com': No such file or directory ... git remote set-url origin git@github.com:username/repo.git.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found