mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
fix: do not remove SOMETHING_INPUT_ELSE from the environment
Only remove what starts with INPUT_ because it is reserved.
This commit is contained in:
parent
c1bd851feb
commit
c37615cffa
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ func mergeEnv(ctx context.Context, step step) {
|
|||
// prevent uses action input pollution of unset parameters, skip this for run steps
|
||||
// due to design flaw
|
||||
for key := range *env {
|
||||
if strings.Contains(key, "INPUT_") {
|
||||
if strings.HasPrefix(key, "INPUT_") {
|
||||
delete(*env, key)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue