diff --git a/.github/workflows/pr-review-automation.yml b/.github/workflows/pr-review-automation.yml index 818f9487..7eda5e4e 100644 --- a/.github/workflows/pr-review-automation.yml +++ b/.github/workflows/pr-review-automation.yml @@ -1,7 +1,7 @@ name: PR Review Automation on: - pull_request: + pull_request_target: paths: - README.md - db/** @@ -10,13 +10,14 @@ on: jobs: pr-review-automation: runs-on: ubuntu-latest - # Add permissions for the GITHUB_TOKEN to comment on PRs permissions: contents: read pull-requests: write issues: write steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.base.ref }} - name: Setup Node uses: actions/setup-node@v4