fix: hide masked values in log files (#1011)

this commit adds support for the `::add-mask::` command, which was
implemented as a stub before.

it does not cover debug output that appears when you run act in
verbose mode

Co-authored-by: Björn Brauer <[email protected]>
Co-authored-by: Markus Wolf <[email protected]>

Co-authored-by: Björn Brauer <[email protected]>
Co-authored-by: Markus Wolf <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-03-02 08:29:34 +00:00
1 parent e9e6ddadf5
commit c22d833830
6 files changed
+72 -2

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ func (runner *runnerImpl) NewPlanExecutor(plan *model.Plan) common.Executor {
}
return nil
})(common.WithJobErrorContainer(WithJobLogger(ctx, jobName, rc.Config.Secrets, rc.Config.InsecureSecrets)))
})(common.WithJobErrorContainer(WithJobLogger(ctx, jobName, rc.Config.Secrets, rc.Config.InsecureSecrets, &rc.Masks)))
})
}
pipeline = append(pipeline, common.NewParallelExecutor(maxParallel, stageExecutor...))