1
0
Fork 0
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:
Earl Warren 2025-08-10 14:47:12 +02:00
parent c1bd851feb
commit c37615cffa
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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)
}
}