Skip to content

Commit 2ad59ba

Browse files
authored
Update vale-linting.yml (#484)
1 parent c03a8b8 commit 2ad59ba

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/vale-linting.yml

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

33
on:
4-
pull_request_target: # ← This is the key change
5-
types: [opened, synchronize, reopened]
4+
pull_request:
65
paths:
76
- '**.md'
87
- '**.adoc'
98

109
permissions:
1110
contents: read
12-
pull-requests: write
11+
pull-requests: write # Required for posting PR comments
1312

1413
jobs:
1514
vale:
1615
runs-on: ubuntu-latest
1716
steps:
18-
- name: Checkout PR branch
17+
- name: Checkout
1918
uses: actions/checkout@v5
2019
with:
21-
ref: ${{ github.event.pull_request.head.sha }} # ← Checkout the PR's code
2220
fetch-depth: 0
23-
21+
2422
- name: Run Elastic Vale Linter
2523
uses: elastic/vale-rules@main
2624
with:

0 commit comments

Comments
 (0)