Skip to content

Commit c2a2622

Browse files
committed
add watch attrib to simple-json
1 parent b90ff34 commit c2a2622

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ require (
112112
)
113113

114114
// attiasas:add_repo_context_scan_graph
115-
replace github.com/jfrog/jfrog-client-go => github.com/attiasas/jfrog-client-go v0.0.0-20241128151327-a53eeb4aff37
115+
replace github.com/jfrog/jfrog-client-go => github.com/attiasas/jfrog-client-go v0.0.0-20241202080241-23f62508099d
116116

117117
// replace github.com/jfrog/jfrog-cli-core/v2 => github.com/jfrog/jfrog-cli-core/v2 dev
118118

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuW
2222
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
2323
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
2424
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
25-
github.com/attiasas/jfrog-client-go v0.0.0-20241128151327-a53eeb4aff37 h1:bpoLV/u11AWWx1zhgt7vhxnj3tgEWHROwE0X6cLkm20=
26-
github.com/attiasas/jfrog-client-go v0.0.0-20241128151327-a53eeb4aff37/go.mod h1:1a7bmQHkRmPEza9wva2+WVrYzrGbosrMymq57kyG5gU=
25+
github.com/attiasas/jfrog-client-go v0.0.0-20241202080241-23f62508099d h1:fiImxqhkajkfANzZHJ4vE9cT99t8oRfhZlb15ndioGg=
26+
github.com/attiasas/jfrog-client-go v0.0.0-20241202080241-23f62508099d/go.mod h1:1a7bmQHkRmPEza9wva2+WVrYzrGbosrMymq57kyG5gU=
2727
github.com/beevik/etree v1.4.0 h1:oz1UedHRepuY3p4N5OjE0nK1WLCqtzHf25bxplKOHLs=
2828
github.com/beevik/etree v1.4.0/go.mod h1:cyWiXwGoasx60gHvtnEh5x8+uIjUVnjWqBvEnhnqKDA=
2929
github.com/bradleyjkemp/cupaloy/v2 v2.8.0 h1:any4BmKE+jGIaMpnU8YgH/I2LPiLBufr6oMMlVBbn9M=

utils/formats/simplejsonapi.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type VulnerabilityOrViolationRow struct {
4747
FixedVersions []string `json:"fixedVersions"`
4848
Cves []CveRow `json:"cves"`
4949
IssueId string `json:"issueId"`
50+
Watch string `json:"watch,omitempty"`
5051
References []string `json:"references"`
5152
ImpactPaths [][]ComponentRow `json:"impactPaths"`
5253
JfrogResearchInformation *JfrogResearchInformation `json:"jfrogResearchInformation"`

utils/results/conversion/simplejsonparser/simplejsonparser.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ func addSimpleJsonSecurityViolation(securityViolationsRows *[]formats.Vulnerabil
228228
},
229229
FixedVersions: fixedVersion,
230230
Cves: cves,
231+
Watch: violation.WatchName,
231232
IssueId: violation.IssueId,
232233
References: violation.References,
233234
JfrogResearchInformation: convertJfrogResearchInformation(violation.ExtendedInformation),

0 commit comments

Comments
 (0)