Skip to content

Username not found for Github #160

Description

@liechtym

Thanks for maintaining the awesome package!

We started using the persist-credentials: false flag when checking out the git repo. This fixed an issue we were having when installing a private repo. Since then, the action has been failing at the add-and-commit step with this error:

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

Here is the code for our Github action:

name: Lint source code
on: 
  push:
  pull_request:
    types: [opened]

jobs:
  run:
    name: Lint with ESLint
    runs-on: ubuntu-latest
    steps:

      - name: Checkout repo
        uses: actions/checkout@v2
        with:
          persist-credentials: false

      - name: Set up Node.js
        uses: actions/setup-node@v2
        with:
          node-version: 15.x

      - name: Install dependencies
        run: npm install

      - name: Update source code
        run: npm run lint

      - name: Commit changes
        uses: EndBug/add-and-commit@v7

Here is the full output in the action for the add-and-commit step:

Add input parsed as single string, running 1 git add command.
> Using 'liechtym <liechtym@users.noreply.github.com>' as author.
> Using "Commit from GitHub Actions (Lint source code)" as commit message.
Internal logs
  > Staging files...
  > Adding files...
  > No files to remove.
  > Checking for uncommitted changes in the git working tree...
  > Found 47 changed files.
  Error: Error: fatal: could not read Username for 'https://github.com': No such device or address
  
Outputs
  committed: false
  pushed: false
  tagged: false
Error: Error: fatal: could not read Username for 'https://github.com': No such device or address

Any ideas of what might be the problem here / how we can fix it?

Thanks for you help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: staleInactive issues and PRstype: questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions