Commit 6ffea76
committed
fix: Restrict E2E workflow on PR target to privileged users
- Removed the `labeled` event type from `pull_request_target` triggers for the
E2E workflow.
- The E2E workflow will now run on `pull_request_target` events (opened,
reopened, synchronize) only if the actor who triggered the event possessed
write or admin permissions to the repository.
- This replaced the previous mechanism where an 'e2e' label on a pull request
would trigger the workflow.
- The primary goal was to enhance security for `pull_request_target` workflows,
preventing untrusted users from running them with potentially elevated
permissions via labels.
- Adjusted conditional logic in E2E test execution steps to align with these
new permission-based job triggers, removing obsolete label checks.
Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>1 parent 03788d6 commit 6ffea76
2 files changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| |||
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| 146 | + | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 8 | + | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| |||
0 commit comments