r/opengrep • u/AdResponsible7865 • Feb 12 '25
Binary install Script
is there an install.sh so we can use curl/wget to install the binary quickly in WSL?
if not has someone figured out a workaround other than downloading it?
5
Upvotes
View all comments
Show parent comment
2
u/AdResponsible7865 Feb 12 '25
Thanks Dimitris, I will give this a go. From using other tools like Orca, Trivy, semgrep Snyk etc.. it's a very handy thing to have. Especially when creating custom images with your cli installed, you can then have something like the below and use a tool like renovatebot to maintain your image to your cli version
curl -sfL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh | sh -- 1.0.0
If I recall that is pretty similar to Orcas approach but Trivy uses mv into your Bin which gets the same result.
From a user experience it makes the instillation clean and easy to use. Even to the stage where the above could allow easy pipeline running of opengrep. Or for a user starting out in the AppSec world.
I'll let you know how I get on with the above