diff --git a/.github/workflows/pr_auto_approval.yml b/.github/workflows/pr_auto_approval.yml index 1419a31..9075ccb 100644 --- a/.github/workflows/pr_auto_approval.yml +++ b/.github/workflows/pr_auto_approval.yml @@ -10,7 +10,8 @@ jobs: name: Auto-approve docker push pr runs-on: ubuntu-latest if: | - startsWith(github.event.pull_request.head.ref, 'docker_files_push_') + startsWith(github.event.pull_request.head.ref, 'docker_files_push_') && + github.event.pull_request.user.login == 'elastic-vault-github-plugin-prod[bot]' permissions: pull-requests: write contents: write @@ -19,4 +20,6 @@ jobs: - name: Debug PR info run: | echo "PR Head Ref: ${{ github.event.pull_request.head.ref }}" - - uses: hmarr/auto-approve-action@v3 \ No newline at end of file + echo "PR User Login: ${{ github.event.pull_request.user.login }}" + - name: Auto Approve + uses: hmarr/auto-approve-action@v3 \ No newline at end of file