And a secret.txt file with an empty secret such as:
FOO=""
The output for the following command is virtually unreadable: drone exec --secret-file="secret.txt" --trusted
The problem is the replace rules prepared for writing lines, which adds a rule to replace nothing with ********, resulting in ******** being inserted after every character of output. An empty string check in the newReplacer function at the end of https://github.com/drone/drone-runtime/blob/master/runtime/line.go would presumably fix the problem.
I’m not much of a Go dev and don’t have a dev environment for drone set up at the moment to be able to adequately test any patch. I’m happy to set up the issue though. The only reason I started here is because your GitHub repo is configured to tell people NOT to post bugs there.