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

Can ignore APK warning message? #1045

Closed
r-okui opened this issue Sep 1, 2020 · 2 comments · Fixed by #1052
Closed

Can ignore APK warning message? #1045

r-okui opened this issue Sep 1, 2020 · 2 comments · Fixed by #1052
Assignees
Labels

Comments

@r-okui
Copy link

r-okui commented Sep 1, 2020

Alpine Linux based container failed package scan, because apk info -v output warning message.
Maybe apk update will fix warning cause, but in my usecase I hope VULS just ignore warning message.

Error

[Sep  1 07:55:37]  INFO [localhost] Scanning vulnerable OS packages...
[Sep  1 07:55:37]  INFO [sample@sample] Scanning in fast offline mode
[Sep  1 07:55:37] ERROR [sample@sample] Failed to scan installed packages: Failed to parse apk info -v: WARNING: Ignoring APKINDEX.70f61090.tar.gz: No such file or directory
[Sep  1 07:55:37] ERROR [localhost] Error on sample@sample, err: [Failed to parse apk info -v: WARNING: Ignoring APKINDEX.70f61090.tar.gz: No such file or directory:
    github.com/future-architect/vuls/scan.(*alpine).parseApkInfo
        /go/src/github.com/future-architect/vuls/scan/alpine.go:150]

Setting

...
[servers.sample]
host          = "192.168.0.10"
port          = "22"
user          = "root"
scanMode      = ["fast", "offline"]
containerType = "docker"
containersIncluded = ["${running}"]
...
[root@sample vuls]# docker exec sample apk info -v
WARNING: Ignoring APKINDEX.70f61090.tar.gz: No such file or directory
musl-1.1.22-r3
...
@shopper29
Copy link
Contributor

@r-okui Thank you for your report. I have been assigned to this issue.
I make a pull request that fixed the problem.(#1052)
If it's merged, please use it. Thanks.

@r-okui
Copy link
Author

r-okui commented Oct 13, 2020

@daikiyamakawa Thank you! It worked fine 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants