Skip to content

Commit 2cb0c30

Browse files
authored
ci: replace pull_request_target with pull_request (#751)
`pull_request_target` carries higher risk for untrusted PRs because it executes in the base repository context and can have broader token privileges. Switching to `pull_request` provides a safer default security posture for external contributions. The main tradeoff is that auto-labeling may not run for fork-based PRs, which is acceptable in our case. ASF infra keeps on flagging this, so lets make the change
1 parent 73fa0ad commit 2cb0c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
name: "Pull Request Labeler"
19-
on: pull_request_target
19+
on: pull_request
2020

2121
permissions:
2222
contents: read

0 commit comments

Comments
 (0)