-
Notifications
You must be signed in to change notification settings - Fork 64
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
The commenter fails with the error "invalid character '/' looking for beginning of value" #17
Comments
Hey @suomit-pki - sorry for the delay in getting to this. Is it still an issue? I think I've seen this when bad output landsin in the results.json so might be worth running again from @main again, apologies for the delay |
I do get the same error with @main version |
The same for me, main and previous versions are not working |
I tried 0.1.10 yesterday on a new PR in our private repo and it was working fine again. |
@jgrumboe can you please share your workflow? |
Sure.
|
Thanks for sharing! So I've investigated my problem and problem was in tfsec code validating. With invalid code style tfsec breaks:
And breaks not on JSON format. That's why commenting isn't working. |
Good point! I had only successful code and not tested a tfsec hit ... need to do that. |
I am a moron who forgot to add the checkout step first 😂 |
Hi,
I'm running the latest @main version of the action. When I run it, it fails and in the logs it says:
Starting the github commenter... The commenter failed with the following error: invalid character '/' looking for beginning of value
Looking at the cmd/commenter/commenter.go code and the error message, it seems to come from the JSON-library, so maybe parsing the event.json file or the results.json file fails?
The text was updated successfully, but these errors were encountered: