I received this Heroku vulnerability email:
In the email, it says:
Check if you’re affected
Run the following on your app:
$ heroku run “ruby -rpsych -e \”p Psych.libyaml_version.join(‘.’)\”” -a <app name>
If you see the following error message, then you are not vulnerable and can ignore the rest of this email:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- psych (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
Unfortunately, when I run it, there was an error (using Mac):
-bash: syntax error near unexpected token `('
How can I run the command line above correctly ? Thanks.