Open joriswitteman opened 1 year ago
I can't get Dependabot to accept rebase commands from the gh-actions bot:
gh-actions
Sorry, only users with push access can use that command.
If I follow up with a personal rebase comment manually, Dependabot accepts.
My workflow file:
name: Auto Rebase Dependabot PRs on: push: release: types: [published] jobs: auto-rebase: permissions: pull-requests: write contents: read name: Auto Rebase Dependabot PRs runs-on: ubuntu-latest if: ${{ github.actor == 'dependabot[bot]' }} && github.ref == 'refs/heads/main' || github.event == 'release' timeout-minutes: 5 steps: - name: Request Rebase uses: "bbeesley/gha-auto-dependabot-rebase@main" env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} with: task: rebase
I believe when it says "push access" it means write permission, so you would need something like
permissions: pull-requests: write contents: write
I can't get Dependabot to accept rebase commands from the
gh-actions
bot:If I follow up with a personal rebase comment manually, Dependabot accepts.
My workflow file: