diff --git a/.github/workflows/dependabot-approve-and-request-merge.yaml b/.github/workflows/dependabot-approve-and-request-merge.yaml index a2c9b5de8..4e055a212 100644 --- a/.github/workflows/dependabot-approve-and-request-merge.yaml +++ b/.github/workflows/dependabot-approve-and-request-merge.yaml @@ -8,7 +8,7 @@ jobs: contents: write id-token: write runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' + if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == github.event.pull_request.head.repo.full_name steps: - uses: contentful/github-auto-merge@v1 with: