ironhide icon indicating copy to clipboard operation
ironhide copied to clipboard

Output not visible in GitHub Actions

Open giarc3 opened this issue 3 years ago • 1 comments

File decryption output is not visible when using ironhide in GitHub Actions. We use this function for our output (or println_paint):

pub fn print_paint(paint: yansi::Paint<String>) {
    // only print to stdout if we're not being piped somewhere
    if atty::is(atty::Stream::Stdout) {
        print!("{}", paint);
    }
}

I assume the condition is failing in this environment, in which case we print out nothing. The atty also seems abandoned.

giarc3 avatar Dec 08 '22 23:12 giarc3

We worked around this in IronCoreLabs/ironhide-actions like this and like this. We still don't have a solution for Windows, and either way the issue still stands.

We'd need a design of how we want to fix this. It's common to use isatty to toggle features like sending colors or not, but it isn't common to use it to decision sending output at all.

skeet70 avatar Jul 19 '23 19:07 skeet70