Skip to content

Commit 9a462d0

Browse files
authored
[chore] use pull_request_target to have correct permissions on the PR (#42210)
This action still fails for contributors, because they are not trusted. Moving to `pull_request_target` should help. Example of failure: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/17182949667/job/48747879727?pr=42158
1 parent 9ec14e0 commit 9a462d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/first-time-contributor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: 'First time contributor'
22
on:
3-
pull_request:
4-
types: [opened, labeled]
3+
pull_request_target:
4+
types:
5+
- opened
6+
- labeled
57

68
permissions: read-all
79

0 commit comments

Comments
 (0)