Skip to content

Commit d192116

Browse files
authored
Use pull_request instead of pull_request_target trigger (#453)
Use pull_request to not run workflow changes on PRs from forks. --- Note: Tested on fork in this PR makubacki/mu_basecore#99 Signed-off-by: Michael Kubacki <[email protected]>
1 parent 19d500d commit d192116

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/Labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
configuration-path: .github/workflows/label-issues/file-paths.yml
4444
repo-token: ${{ secrets.GITHUB_TOKEN }}
4545
sync-labels: true
46-
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
46+
if: github.event_name == 'pull_request'
4747

4848
- name: Apply PR Labels Based on Policies
4949
uses: srvaroa/[email protected]
@@ -53,4 +53,4 @@ jobs:
5353
fail_on_error: true
5454
env:
5555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
56+
if: github.event_name == 'pull_request'

.github/workflows/pull-request-formatting-validator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
name: Validate Pull Request Formatting
1414

1515
on:
16-
pull_request_target:
16+
pull_request:
1717
types:
1818
- edited
1919
- opened

.sync/workflows/leaf/label-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
types:
2424
- edited
2525
- opened
26-
pull_request_target:
26+
pull_request:
2727
types:
2828
- edited
2929
- opened

.sync/workflows/leaf/pull-request-formatting-validator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
name: Validate Pull Request Formatting
1414

1515
on:
16-
pull_request_target:
16+
pull_request:
1717
types:
1818
- edited
1919
- opened

0 commit comments

Comments
 (0)