-
Notifications
You must be signed in to change notification settings - Fork 4
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
Using scan2html on Alpine linux: plugin error no such file or directory #32
Comments
Hi @DenMX , Thanks for using this plugin. Can you execute this command Regards, |
Hi Fatih, I'm using docker Alpine and I'm facing the same situation. The plugin was installed correctly as I can see it using the command ./trivy plugin list Installed Plugins: But the moment i execute ./trivy scan2html --scanner i get the error When I precise the absolute path to the scan2html in trivy command, I get the error Plugin Commands is it maybe a compatibility issue in alpine ? As we are using gitlab pipeline, the Alpine docker image is used all the time Thank you in advance ! Fatima |
Hi @Fatima-Zahraebhbn , Thanks for the detailed explanation. Because now two users are having this issue, we will be looking at this as a priority. We will keep you updated. Regards |
Hi @Fatima-Zahraebhbn , @DenMX , I have created a gitlab pipeline to test the plugin. And saw that scan2html was trying to execute 'trivy' command instead of './trivy' which has been fixed with the latest release of v0.2.8. Also I noticed that the command that you use is missing flags. Can you use it like below, you need to pass a flag(misconfig,secret,license,vuln) after '---scanners'?
gitLab test pipeline details: Regards, |
Hi Fatih, Thank you for the quick feedback and the fix that you provided. I can see in your gitlab job that you used ruby:3.1 to execute your test ,i did the same and the scan went smooth. Unfortunately I still had the same issue in Alpine, I believe it could be an issue related to missing prerequisites (eg: ruby package, ..) ? I could confirm that the plugin is working fine in opensuse/leap Thank you ! |
Hi @Fatima-Zahraebhbn , @DenMX , At last we have found the root cause of your issue. And good news is that it is nothing to do with scan2html but missing bash and git on alpine linux. https://gitlab.com/fatih.tokus/scan2html-test/-/jobs/6758501126stages:
build-job: |
When i call "trivy scan2html -h" i got an error that says no such file or directory, but file exist. Mb i'm doing something wrong
The text was updated successfully, but these errors were encountered: