Skip to content

Commit e0ef1c9

Browse files
samzongrootfs
andauthored
[Bugfix]: owner-notification: checkout base repo (not PR head) to eliminate pull_request_target external code risk (#747)
Signed-off-by: samzong <samzong.lu@gmail.com> Co-authored-by: Huamin Chen <rootfs@users.noreply.github.com>
1 parent 7dc1b58 commit e0ef1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/owner-notification.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919
with:
20-
repository: ${{ github.event.pull_request.head.repo.full_name }}
21-
ref: ${{ github.event.pull_request.head.sha }}
20+
repository: ${{ github.repository }}
21+
ref: ${{ github.event.pull_request.base.sha }}
2222
fetch-depth: 0
2323

2424
- name: Get changed files

0 commit comments

Comments
 (0)