Skip to content

Commit

Permalink
Use pull_request_target for write permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pomber committed Dec 23, 2024
1 parent 3733049 commit ca98396
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pr-merged.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PR Merged

on:
pull_request:
pull_request_target:
types: [closed]
branches:
- next
Expand All @@ -21,6 +21,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-updated.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PR Updated

on:
pull_request:
pull_request_target:
branches:
- next

Expand All @@ -21,6 +21,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.head.sha }}"

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand Down

0 comments on commit ca98396

Please sign in to comment.