镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
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: actions@github.com
          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. 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

  2. added
    type: docsDocumentation changes
    status: pinnedShould not be labeled as stale
    and removed
    status: pendingMore info is needed before deciding what to do
    on Nov 26, 2024
  3. EndBug commented on Nov 26, 2024

    @EndBug
    Owner

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

  4. allcontributors commented on Nov 26, 2024

    @allcontributors
    Contributor

    @EndBug

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

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions