diff --git a/.github/workflows/vale-linting.yml b/.github/workflows/vale-linting.yml index b87d22c8..7696b100 100644 --- a/.github/workflows/vale-linting.yml +++ b/.github/workflows/vale-linting.yml @@ -1,22 +1,24 @@ name: Vale Documentation Linting on: - pull_request: + pull_request_target: # ← This is the key change + types: [opened, synchronize, reopened] paths: - '**.md' - '**.adoc' permissions: contents: read - pull-requests: write # Required for posting PR comments + pull-requests: write jobs: vale: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout PR branch uses: actions/checkout@v5 with: + ref: ${{ github.event.pull_request.head.sha }} # ← Checkout the PR's code fetch-depth: 0 - name: Run Elastic Vale Linter