IronCoreLabs / IronCoreLabs/ironhide

Output not visible in GitHub Actions

Open
#88 1 comment 0 reactions 0 assignees View on GitHub
bug needs-design
Dominant language
Rust
Stars
53
Forks
5
Avg merge
41m
Merged PRs (30d)
2

Description

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) {
// 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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the `print_paint` and `println_paint` functions shown in the issue and checking how `atty::is(atty::Stream::Stdout)` behaves in GitHub Actions. Verify the behavior with the file decryption command in that environment; done means decrypted output is visible there without breaking piped output.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, rust
Domain
ci-cd, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.