Skip to content

Using persist-credentials: false leads to could not read Username for 'https://github.com': No such device or address #673

Closed

Description

@icemac

Describe the bug
Using persist-credentials: false in a private repository for actions/checkout@v4 as suggested by https://github.com/woodruffw/zizmor leads to could not read Username for 'https://github.com/': No such device or address

Workflow used

      - uses: actions/checkout@v4
        with:
          repository: ${{ github.event.pull_request.head.repo.full_name }}
          ref: ${{ github.event.pull_request.head.ref }}
          token: ${{ secrets.COMMIT_ACTIONS_TOKEN }}
...
      - name: Commit changes
        uses: EndBug/add-and-commit@v9
        with:
          committer_name: GitHub Actions
          committer_email: [email protected]
          message: Version synchronisation
          add: '["toolkit/deps.cfg", "dependabot/requirements.txt"]'

Expected behavior
The documentation suggests to update to actions/checkout@v2 for the error message I saw.
Maybe this just needs to be added to the documentation as another source for this error.

Logs

Run EndBug/add-and-commit@v9

Running in /home/runner/work/...
Add input parsed as string array, running 2 git add commands.
> Using 'dependabot[bot] ' as author.
> Using custom committer info: GitHub Actions 
> Using "Version synchronisation" as commit message.
> Internal logs
  > Staging files...
  > Adding files...
  > No files to remove.
  > Checking for uncommitted changes in the git working tree...
  > Found 1 changed files.
  > Fetching repo...
  Error: Error: fatal: could not read Username for 'https://github.com/': No such device or address

Activity

  1. added
    status: pending
    on Nov 26, 2024
  2. EndBug commented on Nov 26, 2024

    @EndBug
    Owner

    Hmm yeah, makes sense that persist-credentials: false causes this issue, as then add-and-commit has no credentials to access the repo. It's worth mentioning this in https://github.com/EndBug/add-and-commit#about-actionscheckout

  3. added
    type: docs
    good first issue
    status: pinned
    and removed
    status: pending
    on Nov 26, 2024
  4. EndBug commented on Nov 26, 2024

    @EndBug
    Owner

    @all-contributors please add @icemac for their docs contribution

  5. allcontributors commented on Nov 26, 2024

    @allcontributors
    Contributor

    @EndBug

    I've put up a pull request to add @icemac! 🎉

  6. EndBug commented on Nov 26, 2024

    @EndBug
    Owner

    Thanks for the suggestion :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuestatus: pinnedtype: docs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions