jfrog / jfrog/jfrog-cli-security

Build-scan option not showing Security Violations after upgrade to 2.74.1

Open
#406 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
13
Forks
50
Avg merge
3d 48m
Merged PRs (30d)
26

Description

Describe the bug

Upgraded the CLI from version 2.71.3 to 2.74.1. The build-scan option is now showing incorrectly that there are no security violations.

Current behavior

When running jf build-scan version 2.71.3 on a build with a violation, receive the following:

07:32:52 [Info] Waiting for Build Scan to complete...
07:32:52 [Info] The scan data is available at: ####

Security Violations
┌──────────┬───────────────────────────┬────────────┬───────────────────────────┬────────────┬──────────┬───────┬────────────────┐
│ SEVERITY │ DIRECT │ DIRECT │ IMPACTED │ IMPACTED │ FIXED │ TYPE │ CVE │
│ │ DEPENDENCY │ DEPENDENCY │ DEPENDENCY │ DEPENDENCY │ VERSIONS │ │ │
│ │ │ VERSION │ NAME │ VERSION │ │ │ │
├──────────┼───────────────────────────┼────────────┼───────────────────────────┼────────────┼──────────┼───────┼────────────────┤
│ Critical │ jpetstore-1.06-20250407.1 │ │ com.thoughtworks.xstream: │ 1.3.1 │ [1.4.16] │ Maven │ https://github.com/advisories/GHSA-hwpc-8xqv-jvj4
│ │ 23230-1.war │ │ xstream │ │ │ │ │
│ │ │ │ │ │ │ │ │
└──────────┴───────────────────────────┴────────────┴───────────────────────────┴────────────┴──────────┴───────┴────────────────┘
License Compliance Violations
+---------------------------------------------+
| No license compliance violations were found |
+---------------------------------------------+

Now, running the jf 2.74.1 version on the same build:

07:32:40 [Info] Waiting for Build Scan to complete...
07:32:51 [Info] The scan data is available at: ###

Security Violations
+-----------------------------------+
| No security violations were found |
+-----------------------------------+
License Compliance Violations
+---------------------------------------------+
| No license compliance violations were found |
+---------------------------------------------+
Operational Risk Violations
+-------------------------------------------+
| No operational risk violations were found |
+-------------------------------------------+

Reproduction steps

Upload an artifact as part of a pipeline build and run a build scan

jf rt upload ...
jf rt build-publish
jf build-scan

Expected behavior

Expected to the Security Violation output the same as the 2.71.3 version of CLI

JFrog CLI-Security version

2.74.1

JFrog CLI version (if applicable)

2.74.1

Operating system type and version

Windows Server 2016

JFrog Xray version

7.98.10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the build-scan flow with jf rt upload, jf rt build-publish, and jf build-scan on the reported Windows and JFrog versions. Compare the security-violation output from CLI 2.71.3 and 2.74.1, then trace the Go build-scan security reporting path. Done means the newer CLI reports the known XStream violation instead of claiming none were found.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.