mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
fix: hide masked value (#668)
* fix: hide masked value The ::add-mask:: command output logs the value to be masked. This does expose critical information which should be hidden from the output. * Add test to not output secret in add-mask command Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
1d3cf75364
commit
ee4a5c458f
2 changed files with 17 additions and 1 deletions
|
@ -54,7 +54,7 @@ func (rc *RunContext) commandHandler(ctx context.Context) common.LineHandler {
|
|||
case "error":
|
||||
logger.Infof(" \U00002757 %s", line)
|
||||
case "add-mask":
|
||||
logger.Infof(" \U00002699 %s", line)
|
||||
logger.Infof(" \U00002699 %s", "***")
|
||||
case "stop-commands":
|
||||
resumeCommand = arg
|
||||
logger.Infof(" \U00002699 %s", line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue