Commit 12c982f
fix: preserve env var case in template injection fixes (#1766)
* fix: preserve env var case in template injection fixes
`context_to_env_var()` unconditionally uppercased all generated
env var names. For `env.*` contexts this changes the variable name
(e.g. `env.build_tag` → `BUILD_TAG`), silently breaking workflows
on Linux where env vars are case-sensitive.
Only uppercase for non-env contexts, where we're creating new
variable names. For env contexts, preserve the original casing.
Fixes #1765
* Record changes
Signed-off-by: William Woodruff <[email protected]>
---------
Signed-off-by: William Woodruff <[email protected]>
Co-authored-by: William Woodruff <[email protected]>1 parent cfafaf3 commit 12c982f
File tree
2 files changed
+20
-7
lines changed- crates/zizmor/src/audit
- docs
2 files changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| |||
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
274 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
275 | 285 | | |
276 | 286 | | |
277 | 287 | | |
| |||
1059 | 1069 | | |
1060 | 1070 | | |
1061 | 1071 | | |
1062 | | - | |
| 1072 | + | |
1063 | 1073 | | |
1064 | 1074 | | |
1065 | 1075 | | |
| |||
1173 | 1183 | | |
1174 | 1184 | | |
1175 | 1185 | | |
1176 | | - | |
| 1186 | + | |
1177 | 1187 | | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
1181 | 1191 | | |
1182 | 1192 | | |
1183 | 1193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
0 commit comments