Repository navigation
Commit 3c13ff3
committed
Reject whitespace-only read-only and lockdown values
A value such as GITHUB_READ_ONLY=' ' trimmed to the empty string and was
accepted as false, so the server still started with write tools exposed.
Treat only an unset value as the default and reject a non-empty value that
is blank after trimming.
Fixes #37471 parent 3b41eca commit 3c13ff3
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
401 | 406 | | |
402 | | - | |
| 407 | + | |
403 | 408 | | |
404 | 409 | | |
405 | 410 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
0 commit comments