fixing tests
All checks were successful
CI / Rustfmt (push) Successful in 23s
CI / Cargo Audit & Deny (push) Successful in 34s
CI / Web Blocking Checks (push) Successful in 49s
CI / Security Blocking Checks (push) Successful in 9s
CI / Clippy (push) Successful in 2m6s
CI / Web Advisory Checks (push) Successful in 24s
CI / Security Advisory Checks (push) Successful in 37s
CI / Tests (push) Successful in 7m39s

This commit is contained in:
2026-03-11 14:53:15 -05:00
parent 9b0ff4a6d2
commit 6307888722

View File

@@ -462,12 +462,12 @@ impl ProcessRuntime {
_ => serde_json::to_string(value)?,
};
let escaped = bash_single_quote_escape(&value_str);
script.push_str(&format!(
"export PARAM_{}='{}'\n",
key.to_uppercase(),
escaped
));
script.push_str(&format!("export {}='{}'\n", key, escaped));
// Define shell variables for the inline action without exporting
// them into the process environment. This keeps secrets available
// to the current script while preventing leakage via `printenv`
// or to child processes spawned by the action.
script.push_str(&format!("PARAM_{}='{}'\n", key.to_uppercase(), escaped));
script.push_str(&format!("{}='{}'\n", key, escaped));
}
script.push('\n');
script.push_str("# Action code\n");