Skip to content

Commit f15bba4

Browse files
authored
ci: Update auto-label workflow to use pull_request_target (#323)
1 parent 97f6f1b commit f15bba4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/auto-label.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: Auto-label issues and PRs
33
on:
44
issues:
55
types: [opened]
6-
pull_request:
6+
# We do pull_request_target instead of pull_request to support PR's from forks.
7+
# This is safe here because we're not checking out or executing any code from the fork; we're just adding labels.
8+
pull_request_target:
79
types: [opened]
810

911
jobs:
@@ -30,4 +32,4 @@ jobs:
3032
owner: context.repo.owner,
3133
repo: context.repo.repo,
3234
labels: ['team/fs-wg', 'team/filecoin-pin']
33-
})
35+
})

0 commit comments

Comments
 (0)