Skip to content

Commit e70ee96

Browse files
authored
Use pull_request_target event for GH Actions workflows (#48390)
1 parent bfa5f47 commit e70ee96

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/pr-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: PR Analysis
22
on:
3-
pull_request:
3+
pull_request_target:
44
types: [opened, labeled, unlabeled]
55
permissions:
66
contents: read

.github/workflows/remove-lockdown-label.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Remove Lockdown Label from PRs
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [closed]
66

77
permissions:
@@ -13,9 +13,6 @@ jobs:
1313
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Branding')
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Checkout repository
17-
uses: actions/checkout@v2
18-
1916
- name: PR's only change is <VersionFeature> in eng/Versions.props
2017
id: only_version_feature_changed
2118
uses: actions/github-script@v4

0 commit comments

Comments
 (0)