'github action fails with error could not read Username for 'https://github.com/'

Im using branch protection on master, but allowing bypass to a user with a PAT set to ${{ secrets.BYPASS }}

The below pipeline fails on the release step with this error.

I believe its the checkout@2 setting persist-credentials: false thats causing the error, but without it i cant get the Automated Version Bump step to work.

Is there a work around?

Run fregante/release-with-changelog@v3
Error: Command failed: git fetch origin +refs/tags/*:refs/tags/*
fatal: could not read Username for 'https://github.com/': No such device or address

Pipeline.yml

name: Push

on:
  push:
    branches: [ master ]
  workflow_dispatch:

jobs:
  push:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout source code
        uses: 'actions/checkout@v2'
        with:
          ref: ${{ github.ref }}
          persist-credentials: false
          fetch-depth: 50

      - name: Automated Version Bump
        id: version-bump
        uses: 'phips28/gh-action-bump-version@master'
        env:
          GITHUB_TOKEN: ${{ secrets.BYPASS }}
        with:
          skip-tag: 'false'

      - name: Tag Changelog
        uses: fregante/release-with-changelog@v3
        with:
          token: ${{ secrets.BYPASS }}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source