-
Notifications
You must be signed in to change notification settings - Fork 223
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
jf scan failed to index tar file as container image and exits with an unexpected exit code #2333
Comments
Dear @cospeedster,
However I get some warnings but scan vulnerability output is as expected
|
Hi @rcarre, For now I'm getting around this by using Anyway, I'd apreciate some support from JFrog here. |
I guess the reason why you do not get the expected code is because you did not check |
But does this not only take effect if you use build scan via In context of this issue I'd like to use I'll continue to follow your approach anyway. Thanks! |
Related: |
Describe the bug
jf scan
failed to index tar file downloaded withskopeo
as container image. I've tried that with oci and v2 format (see logs below). Also the command exits withScan completed successfully.
and exit code0
wich is unexpected.Background: I would like to scan container images without running docker cli and docker socket on my agent.
This may be related to #1645 and #2179.
Current behavior
I censored our private domain with
<**censored**>
. Here is the log output:scan_target_oci_out.txt
scan_target_v2s2_out.txt
Reproduction steps
See Current behavior
Expected behavior
First of all I expected the scan to work because the tar archieves are recognized as container images.
Then I expected the
Failed to index tar file as container image
to be anERROR
instead of anWARN
.Furthermore I expected the command to fail if such error occurs and exit with a non-zero exit code.
JFrog CLI version
jf version 2.51.1
Operating system type and version
Ubuntu 22.04.3 LTS
JFrog Artifactory version
{"version":"7.68.14","revision":"76814900"}
JFrog Xray version
{"xray_version":"3.85.5","xray_revision":"8ef6b2d"}
The text was updated successfully, but these errors were encountered: