Skip to content

Commit dc60e58

Browse files
authored
change workflow pull_request_target to pull_request
1 parent 895f3e5 commit dc60e58

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- '**'
88
branches-ignore:
99
- gh-pages
10-
pull_request_target:
10+
pull_request:
1111
types:
1212
- opened
1313
- reopened
@@ -52,10 +52,10 @@ jobs:
5252
if: ${{ needs.check-pr.outputs.inpr != 'true' }}
5353
steps:
5454
- name: Checkout
55-
if: ${{ github.event_name != 'pull_request_target' }}
55+
if: ${{ github.event_name != 'pull_request' }}
5656
uses: actions/checkout@v4
5757
- name: Checkout Pull Request
58-
if: ${{ github.event_name == 'pull_request_target' }}
58+
if: ${{ github.event_name == 'pull_request' }}
5959
uses: actions/checkout@v4
6060
with:
6161
ref: ${{ github.event.pull_request.head.ref }}
@@ -78,10 +78,10 @@ jobs:
7878
- test
7979
steps:
8080
- name: Checkout
81-
if: ${{ github.event_name != 'pull_request_target' }}
81+
if: ${{ github.event_name != 'pull_request' }}
8282
uses: actions/checkout@v4
8383
- name: Checkout Pull Request
84-
if: ${{ github.event_name == 'pull_request_target' }}
84+
if: ${{ github.event_name == 'pull_request' }}
8585
uses: actions/checkout@v4
8686
with:
8787
ref: ${{ github.event.pull_request.head.ref }}

0 commit comments

Comments
 (0)