mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
fix: composite action input pollution (#2348)
* fix: composite action input pollution * fix run steps * fix missing defaults in post after env cleanup * fix test to make more sense * Add tests and simplify change --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 54245641d28fc496152684e151043ce0c7389086) Conflicts: act/runner/step_test.go the modified test does not exist in the Forgejo runner
This commit is contained in:
parent
a737f197c7
commit
cb99c53dc1
15 changed files with 181 additions and 0 deletions
|
@ -711,6 +711,7 @@ func runPostStep(step actionStep) common.Executor {
|
|||
case model.ActionRunsUsingNode12, model.ActionRunsUsingNode16, model.ActionRunsUsingNode20:
|
||||
|
||||
populateEnvsFromSavedState(step.getEnv(), step, rc)
|
||||
populateEnvsFromInput(ctx, step.getEnv(), step.getActionModel(), rc)
|
||||
|
||||
containerArgs := []string{"node", path.Join(containerActionDir, action.Runs.Post)}
|
||||
logger.Debugf("executing remote job container: %s", containerArgs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue