Skip to content

Commit 517fd72

Browse files
authored
Update vale-linting.yml (#480)
1 parent 40f3d76 commit 517fd72

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/vale-linting.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
name: Vale Documentation Linting
22

33
on:
4-
pull_request:
4+
pull_request_target: # ← This is the key change
5+
types: [opened, synchronize, reopened]
56
paths:
67
- '**.md'
78
- '**.adoc'
89

910
permissions:
1011
contents: read
11-
pull-requests: write # Required for posting PR comments
12+
pull-requests: write
1213

1314
jobs:
1415
vale:
1516
runs-on: ubuntu-latest
1617
steps:
17-
- name: Checkout
18+
- name: Checkout PR branch
1819
uses: actions/checkout@v5
1920
with:
21+
ref: ${{ github.event.pull_request.head.sha }} # ← Checkout the PR's code
2022
fetch-depth: 0
2123

2224
- name: Run Elastic Vale Linter

0 commit comments

Comments
 (0)