jfrog / jfrog-idea-plugin

JFrog IntelliJ IDEA plugin
https://jfrog.github.io/jfrog-idea-plugin/
Apache License 2.0
199 stars 34 forks source link

Problem loading vulnerabilities in Frog CI screen #358

Open NewRunner2023 opened 1 year ago

NewRunner2023 commented 1 year ago

Hello,

I followed the instructions here: https://github.com/jfrog/project-examples/tree/master/docker-oci-examples/docker-example

I followed all of the steps and I did not get any error messages.

But when I go to the CI screen in JFrog I can see:

Screenshot 2023-06-15 at 16 04 34

Can anyone suggest anything please ?

Thanks.

NewRunner2023 commented 1 year ago

I tried looking at the log files. I can see: [Info] Creating image archive... [Info] JFrog Xray version is: 3.65.2 [Info] [Thread 0] Indexing file: /var/folders/x_/bz8k_d323flmfy2jlltgh80000gq/T/jfrog.cli.temp.-1686849524-1779544410/image.tar [Info] 2023-06-15T17:18:54.797656Z [jfxia] [INFO ] [] [docker_layer_tar:171 ] [main ] Encountered release info file 'etc/lsb-release' 2023-06-15T17:18:56.781817Z [jfxia] [INFO ] [] [/usr/local/go/src/sync/once:74] [main ] SPDX license IDs from licenses.json and exceptions.json were loaded successfully 2023-06-15T17:18:57.991871Z [jfxia] [ERROR] [] [archivemgr:226 ] [main ] failed to check file /var/folders/x/b__z8k_d323flmfy2jlltgh80000gq/T/jfrog.cli.temp.-1686849529-2372096919/f9e44aa7-180b-411b-7281-fb3499a91026/168684953798772100/tzdata.zi, with err: No zip file found 2023-06-15T17:18:57.99192Z [jfxia] [WARN ] [] [archivemgr:630 ] [main ] Failed to extract file tzdata.zi (root path: /var/folders/x/bz8k_d323flmfy2jlltgh80000gq/T/jfrog.cli.temp.-1686849529-2372096919/f9e44aa7-180b-411b-7281-fb3499a91026/168684953188129700/). Would be treated as generic. err : No zip file found 2023-06-15T17:18:59.969904Z [jfxia] [INFO ] [] [archive_mgr:226 ] [main ] Unable to determine component id, artifact is set to generic: 15fb95c2168bb78cf94f61bbff7fc0bb5611db9d8509dd1322a40d735c3109bc 2023-06-15T17:18:59.97416Z [jfxia] [INFO ] [] [archivemgr:226 ] [main ] Unable to determine component id, artifact is set to generic: dfcc13605edabf70e7bec87f68bc2a1c7d06bebecd72a0d4e122eee2e695948e 2023-06-15T17:19:00.50317Z [jfxia] [INFO ] [] [tar:101 ] [main ] Finished indexing layers of docker /var/folders/x/b__z8k_d323flmfy2jlltgh80000gq/T/jfrog.cli.temp.-1686849529-2372096919/f9e44aa7-180b-411b-7281-fb3499a91026/168684953188129700/ (sha256:4875909d3cb193bcaf5d8a9e46bab2ea1c715d7343538ed04624da255ad122ce)

[Info] Waiting for scan to complete on JFrog Xray...

But the really strange thing is that the jf docker scan $DOCKER_IMAGE_NAME command completes fine. Says no issues found.

I even tried setting export JFROG_BUILD_STATUS=PASS after the scan passed, and before pushing the build info, but I get same thing in the log file about waiting for the Xray scan to finish.

I am using a Mac Ventura. I have Java 17 temurin used by my IDE. I have tried this on IntelliJ IDEA 2023.1.1 (Ultimate Edition) and  IntelliJ IDEA 2022.3.3 (Community Edition). Same thing happens in both. I am running things from the Terminal in IntelliJ. In the CE version of IntelliJ I have V2.2.2 of JFrog plugin. In the Ultimate version of IntelliJ I have V2.2.5 of JFrog plugin. Docker version 24.0.2 jf version 2.40.0 (installed through brew install)

The only error I can see in the log file is: 2023-06-15T17:18:57.991871Z �[33m[jfxia]�[0m �[1m�[31m[ERROR]�[0m [] [archivemgr:226 ] [main ] failed to check file /var/folders/x/b__z8k_d323flmfy2jlltgh80000gq/T/jfrog.cli.temp.-1686849529-2372096919/f9e44aa7-180b-411b-7281-fb3499a91026/168684953798772100/tzdata.zi, with err: No zip file found 2023-06-15T17:18:57.9919 But this happens before I try to do the scan.