action-dependabot-auto-merge icon indicating copy to clipboard operation
action-dependabot-auto-merge copied to clipboard

Sorry, only users with push access can use that command.

Open rickyrauch opened this issue 2 years ago • 5 comments

Hello !

I know there are many issues related to this problem but still can't make it to work.

The repo is under our organization and I created the new token under my personal account.

Screen Shot 2022-05-24 at 11 02 39 AM

This is the output of the action: Screen Shot 2022-05-24 at 11 06 36 AM

Thanks!

rickyrauch avatar May 24 '22 18:05 rickyrauch

I'm struggling with the same issue too, also in a private organisation repo. I've given the job the following permissions

permissions:
  pull-requests: write
  contents: write

But also get the same automated comment back.

MerlinMason avatar Jun 10 '22 16:06 MerlinMason

apologies for delayed follow up, I've been dealing with personal issues and have not had time to help debug.

any community member help is more than appreciated.

though a quick hint would be to try using PAT (Personal Access Tokens) if you're blocked as I've found more success with those than the generated tokens by github.

I'm hoping next week will be a time I can get some apace for myself to catch up on this and other projects

ahmadnassri avatar Jun 23 '22 20:06 ahmadnassri

@rickyrauch @MerlinMason has any one of you two figured out a way to solve this? I am currently struggling with this issue too, private repo, not in an orga.

finnSMB avatar Aug 22 '22 09:08 finnSMB

@finnSMB no but yes... I ended up swapping to https://github.com/fastify/github-action-merge-dependabot with the following config which has been working great.

auto-merge:
        name: Auto-Merge PRs by Dependabot
        needs:
            - check-linting
            - check-dependencies
            - check-cypress
            - check-unit-tests
        runs-on: ubuntu-latest
        permissions:
            pull-requests: write
            contents: write
        steps:
          - uses: fastify/[email protected]
            with:
                github-token: ${{ secrets.GITHUB_TOKEN }}
                target: minor

MerlinMason avatar Aug 22 '22 14:08 MerlinMason

I appreciate it, thank you @MerlinMason

finnSMB avatar Aug 22 '22 14:08 finnSMB