You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using jf docker scan our Gitlab CI Pipelines should fail if a high or critical CVE is found. Instead the pipelines just succeed.
This worked some time ago as expected and seems to be broken with one of the last jfrog-cli releases. Unfortunately I cannot exactly determine the time frame since this issue occured as we just realized it today.
For me this looks like jfrog-cli is not giving the correct return code, if "fail build" is configured on the relevant policy the cli tool should return rc != 0 if relevant CVEs are found.
Current behavior
We are using a policy with the following configuration:
17:25:07 [Info] The downloaded Xray Indexer version is 3.109.3
...
17:25:40 [Info] Scan completed successfully.
and now it fails correctly with
08:04:49 [Info] The downloaded Xray Indexer version is 3.111.6
...
08:05:21 [Error] One or more of the detected violations are configured to fail the build that including them
Describe the bug
When using
jf docker scan
our Gitlab CI Pipelines should fail if a high or critical CVE is found. Instead the pipelines just succeed.This worked some time ago as expected and seems to be broken with one of the last jfrog-cli releases. Unfortunately I cannot exactly determine the time frame since this issue occured as we just realized it today.
For me this looks like jfrog-cli is not giving the correct return code, if "fail build" is configured on the relevant policy the cli tool should return rc != 0 if relevant CVEs are found.
Current behavior
We are using a policy with the following configuration:
Our pipelines scan our images as follows:
jf docker scan IMAGE --watches watch_referencing_above_policy
Result e.g. for a current tomcat image scan:
This job should fail as it found a critical CVE, but instead it just succeeds.
Reproduction steps
No response
Expected behavior
No response
JFrog CLI-Security version
the one contained in jfrog-cli ...
JFrog CLI version (if applicable)
2.71.5
Operating system type and version
ubuntu:noble
JFrog Xray version
3.106.7
The text was updated successfully, but these errors were encountered: