webfactory / ssh-agent

GitHub Action to setup `ssh-agent` with a private key
MIT License
1.23k stars 256 forks source link

Could you add flag or hide by default a data from stdout? #61

Closed lolgear closed 3 years ago

lolgear commented 3 years ago

Run webfactory/ssh-agent@v0.5.0 Adding GitHub.com keys to /Users/runner/.ssh/known_hosts Starting ssh-agent Adding private key to agent Identity added: (stdin) (my@email.com) Keys added: 256 SHA256:< SHA > my@email.com (ED25519)

Could you add an option ( options ) to hide my@email.com in logs? Also I would like to hide SHA256:< SHA >.

mpdude commented 3 years ago

The information is printed to ease debugging.

I might be wrong, but the SHA is not a security-relevant information. The email address should be what you put into the key comment field, so you should be able to remove that from the key.