Commit 8df6b94
committed
downstream-check: drop issue_comment trigger (fix cache poisoning)
The issue_comment trigger runs in the privileged default-branch context;
building untrusted PR code there is a cache-poisoning / code-execution vector
(CodeQL actions/cache-poisoning/poisonable-step). Run only on pull_request,
which builds the same code in an isolated, unprivileged context.
Collapses the gate job into a job-level draft check and reads the PR head SHA
from the event payload (no shared gate action needed).1 parent cd92868 commit 8df6b94
1 file changed
Lines changed: 6 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | | - | |
26 | 22 | | |
27 | 23 | | |
28 | | - | |
| 24 | + | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 31 | | |
46 | | - | |
47 | | - | |
| 32 | + | |
48 | 33 | | |
49 | 34 | | |
50 | 35 | | |
51 | 36 | | |
52 | 37 | | |
53 | 38 | | |
54 | | - | |
| 39 | + | |
55 | 40 | | |
56 | 41 | | |
57 | 42 | | |
| |||
75 | 60 | | |
76 | 61 | | |
77 | 62 | | |
78 | | - | |
| 63 | + | |
79 | 64 | | |
80 | 65 | | |
81 | 66 | | |
| |||
104 | 89 | | |
105 | 90 | | |
106 | 91 | | |
107 | | - | |
| 92 | + | |
0 commit comments