Cant run ast-grep 0.7.2 in github actions shell #500
-
- run: sg scan --color always This step fails in 0.7.2 (0.6.6 is working) with this error 66cbc50. What is wrong?
|
Beta Was this translation helpful? Give feedback.
Answered by
HerringtonDarkholme
Jul 10, 2023
Replies: 2 comments 4 replies
-
GHA do not create TTY for their runners actions/runner#241 |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use https://ast-grep.github.io/guide/tooling-overview.html#disable-stdin-mode |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
q0w
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is becauseOh, GHA does not create TTY.sg scan
is invoked from another process.You can use
--no-stdin
to disable this behavior.https://ast-grep.github.io/guide/tooling-overview.html#disable-stdin-mode