Commit 15ecd92
committed
self-hosted-runner: pass the post-deployment script without a URL
When running this workflow in a private repository, providing a public
URL to the post-deployment script simply would not work.
It is not even possible to use the `GITHUB_TOKEN` to construct an
`Invoke-WebRequest` call: The `GITHUB_TOKEN` lacks the permission to
access the resource.
So let's just pass this post-deployment script as a parameter.
Since it is somewhat large-ish, weighing 14kB, let's compress it. And
since the compressed file is binary and cannot easily be passed around,
let's Base64-encode it. The result is still somewhat large (5.6kB) but
at least this works and still leaves some room for additional stuff to
be put into the post-deployment script.
Signed-off-by: Johannes Schindelin <[email protected]>1 parent 7a87c8f commit 15ecd92
File tree
2 files changed
+23
-14
lines changed- .github/workflows
- azure-self-hosted-runners
2 files changed
+23
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| |||
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
164 | 172 | | |
165 | 173 | | |
166 | 174 | | |
167 | | - | |
| 175 | + | |
| 176 | + | |
168 | 177 | | |
169 | 178 | | |
170 | 179 | | |
| |||
216 | 225 | | |
217 | 226 | | |
218 | 227 | | |
219 | | - | |
| 228 | + | |
220 | 229 | | |
221 | 230 | | |
222 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
118 | 125 | | |
119 | 126 | | |
120 | 127 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
269 | 272 | | |
270 | 273 | | |
271 | 274 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
0 commit comments