github actions - cdk diff does not output with color - Stack Overflow

admin2025-05-01  0

I have been struggling with color outputs a lot in GitHub Actions. ANSI color is supported, but many CLI tools only output in color if an interactive TTY is detected. I'm guessing because of this reason certain AWS CLI and AWS CDK CLI outputs default to no color. Does anyone know how to force cdk diff to output in color on GHA like it does on my local machine? Or otherwise, how to generally force GHA to appear like an interactive shell?

转载请注明原文地址:http://anycun.com/QandA/1746109845a91804.html