Commit 9b9761e
authored
ci: restrict workflows to run only on main repo (#2347)
Prevent workflows from running on forks by adding repository
owner checks to workflows that publish artifacts or use self-hosted
runners.
- Add check to `push.yaml` to prevent image publishing on forks
- Add check to `release.yaml` to prevent release creation on forks
- Add check to `k8s-bm.yaml` to prevent self-hosted runner usage on
forks
- Add check to `profiling.yaml` to prevent self-hosted runner usage on
forks
- Removed `Extract version` step from `release.yaml` since it is
redundant and just copying `github.ref_name` to a step variable
output without any transformation or processing
This ensures fork contributors don't need to manually disable workflows
and prevents unnecessary runs on forks.
Signed-off-by: vprashar2929 <[email protected]>1 parent 3b20d7f commit 9b9761e
File tree
4 files changed
+11
-24
lines changed- .github/workflows
4 files changed
+11
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 48 | | |
56 | 49 | | |
57 | 50 | | |
58 | | - | |
| 51 | + | |
59 | 52 | | |
60 | 53 | | |
61 | 54 | | |
62 | 55 | | |
63 | | - | |
| 56 | + | |
64 | 57 | | |
65 | 58 | | |
66 | 59 | | |
| |||
71 | 64 | | |
72 | 65 | | |
73 | 66 | | |
74 | | - | |
| 67 | + | |
75 | 68 | | |
76 | 69 | | |
77 | 70 | | |
| |||
81 | 74 | | |
82 | 75 | | |
83 | 76 | | |
84 | | - | |
| 77 | + | |
85 | 78 | | |
86 | 79 | | |
87 | 80 | | |
| |||
101 | 94 | | |
102 | 95 | | |
103 | 96 | | |
104 | | - | |
| 97 | + | |
105 | 98 | | |
106 | 99 | | |
107 | 100 | | |
108 | 101 | | |
109 | | - | |
| 102 | + | |
110 | 103 | | |
111 | 104 | | |
112 | 105 | | |
| |||
125 | 118 | | |
126 | 119 | | |
127 | 120 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 121 | | |
136 | 122 | | |
137 | 123 | | |
138 | 124 | | |
139 | | - | |
| 125 | + | |
140 | 126 | | |
141 | 127 | | |
142 | 128 | | |
| |||
0 commit comments