Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Incompatible with actions/checkout@v6 #4228

@ZebraFlesh

Description

@ZebraFlesh

GitHub Actions published a new v6.0.0 version of actions/checkout. As soon as renovate pulled in this update, the create-pull-request action began to fail with the following output:

Checking the base repository state
  /usr/bin/git symbolic-ref HEAD --short
  <my branch name>
  Working base is branch '<my branch name>'
  /usr/bin/git remote prune origin
  remote: Duplicate header: "Authorization"
  fatal: unable to access '<repository URL': The requested URL returned error: 400
  Error: The process '/usr/bin/git' failed with exit code 128

The action configuration is pretty vanilla:

- name: Create Pull Request
  uses: Peter/evans/create-pull-request@v7
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    branch: ${{ env.PR_BRANCH_NAME }}
    base: ${{ GitHub.head_ref }}
    delete-branch: true
    title: ...
    add-paths: ...
    body: ...
    commit-message: ...

Rolling back to actions/checkout@v5 resolved the error and this action then runs as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions