docs/adrs/0280-command-input-echoing.md
Date: 2019-11-04
Status: Accepted
Command echoing as a default behavior tends to clutter the user logs, so we want to swap to a system where users have to opt in to see this information.
Command outputs will still be echoed in the case there are any errors processing such commands. This is so the end user can have more context on why the command failed and help with troubleshooting.
Echo output in the user logs can be explicitly controlled by the new commands ::echo::on and ::echo::off. By default, echoing is enabled if ACTIONS_STEP_DEBUG secret is enabled, otherwise echoing is disabled.
remove-matcheradd-matcheradd-path::echo::on is setACTIONS_STEP_DEBUG is set, and echoing hasn't been explicitly disabled with ::echo::offadd-maskdebugwarningerroradd-mask), or it would not add any additional troubleshooting information to the logs (e.g. debug). It's expected that future commands would follow these "echo-suppressing" guidelines as well. Echo-suppressed commands are still free to output other information to the logs, as deemed fit.