We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f3d76 commit 517fd72Copy full SHA for 517fd72
.github/workflows/vale-linting.yml
@@ -1,22 +1,24 @@
1
name: Vale Documentation Linting
2
3
on:
4
- pull_request:
+ pull_request_target: # ← This is the key change
5
+ types: [opened, synchronize, reopened]
6
paths:
7
- '**.md'
8
- '**.adoc'
9
10
permissions:
11
contents: read
- pull-requests: write # Required for posting PR comments
12
+ pull-requests: write
13
14
jobs:
15
vale:
16
runs-on: ubuntu-latest
17
steps:
- - name: Checkout
18
+ - name: Checkout PR branch
19
uses: actions/checkout@v5
20
with:
21
+ ref: ${{ github.event.pull_request.head.sha }} # ← Checkout the PR's code
22
fetch-depth: 0
23
24
- name: Run Elastic Vale Linter
0 commit comments