Skip to content
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

One-liner Install Script does not install assets/queries #3723

Closed
djesernik opened this issue Jun 21, 2021 · 0 comments · Fixed by #3732
Closed

One-liner Install Script does not install assets/queries #3723

djesernik opened this issue Jun 21, 2021 · 0 comments · Fixed by #3732
Assignees
Labels
bug Something isn't working community Community contribution needs-triage

Comments

@djesernik
Copy link

djesernik commented Jun 21, 2021

Following the steps from https://docs.kics.io/1.3.3/getting-started/#one-liner_install_script , the install script only downloads the kics binary and saves it to ./bin/kics , it does not also download the necessary queries and install them to ./bin/assets/queries as expected.

Steps to reproduce

$ curl -sfL 'https://raw.githubusercontent.com/Checkmarx/kics/master/install.sh' | bash
Checkmarx/kics info checking GitHub for latest tag
Checkmarx/kics info found version: 1.3.3 for v1.3.3/linux/x64
Checkmarx/kics info installed ./bin/kics
$ ls bin/
kics
$ uname -a
Linux int-web-20 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Expected behavior

For install.sh to install the assets directory to ./bin/assets from the .tar.gz that it downloads and extracts.

Actual behavior

Only ./bin/kics binary is installed.
Attempting to run a scan using ./bin/kics scan -p . -o . returns an error and also does not look in the correct directory for the assets:

Error: unable to find queries: stat /home/username/assets/queries: no such file or directory

The same happens if running from within the bin directory which then fixes the path it's looking for assets at:

$ cd bin
$ ./kics scan -p . -o .
Error: unable to find queries: stat /home/username/bin/assets/queries: no such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community Community contribution needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants