Skip to content

Commit 58137aa

Browse files
committed
feat: Allow validation workflow to run on forks
1 parent e7719f1 commit 58137aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/validate-lockfile.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Validate pnpm-lock.yaml
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
paths:
66
- 'pnpm-lock.yaml'
77
- '**/package.json'
@@ -15,6 +15,8 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18+
ref: ${{ github.event.pull_request.head.sha }}
19+
repository: ${{ github.event.pull_request.head.repo.full_name }}
1820

1921
- name: Set up Node.js
2022
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)