-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github-env: refinements #197
Comments
For PowerShell, we need to detect patterns like Edit: As well as cursed things like Edit 2: |
Another, more serious option here would be to use
Edit: see airbus-cert/tree-sitter-powershell#9. |
@woodruffw It seems that Python is also a shell option 🙀 |
@woodruffw I gave a try on |
Oh yeah, it gets way worse 🙂 -- there's no way we'll end up being fully general here. But I bet we can come up with some good patterns there as well.
Thanks, that looks amazing! I'll do a more detailed review in a bit, but that approach of popping nodes from the stack is great. |
echo NAME=VAR >> %GITHUB_ENV% |
The
github-env
audit merged in #192 is barebones. Some things we should do to improve it:>> $GITHUB_ENV
shell lines; this won't be perfect, but it'll avoid false positives likeecho $GITHUB_ENV
.^.+\s*>>?\s*"?\$\{?GITHUB_ENV\}?"?.*$
run:
bodies, which are their own mess.actions/github-script
bodies as well, since people are likely to modifyGITHUB_ENV
there too.The text was updated successfully, but these errors were encountered: