Skip to content

Commit 1acba2d

Browse files
committed
fix static tests
1 parent b5449d8 commit 1acba2d

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

go.mod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ module github.com/jfrog/jfrog-cli-security
22

33
go 1.24.6
44

5-
// TODO: update xray-scan lib to latest version that supports CycloneDX v0.9.3 (not yet released)
6-
replace github.com/CycloneDX/cyclonedx-go => github.com/CycloneDX/cyclonedx-go v0.9.2
7-
85
require (
96
github.com/CycloneDX/cyclonedx-go v0.9.3
107
github.com/beevik/etree v1.4.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ dario.cat/mergo v1.0.2 h1:85+piFYR1tMbRrLcDwR18y4UKJ3aH1Tbzi24VRW1TK8=
44
dario.cat/mergo v1.0.2/go.mod h1:E/hbnu0NxMFBjpMIE34DRGLWqDy0g5FuKDhCb31ngxA=
55
github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg=
66
github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
7-
github.com/CycloneDX/cyclonedx-go v0.9.2 h1:688QHn2X/5nRezKe2ueIVCt+NRqf7fl3AVQk+vaFcIo=
8-
github.com/CycloneDX/cyclonedx-go v0.9.2/go.mod h1:vcK6pKgO1WanCdd61qx4bFnSsDJQ6SbM2ZuMIgq86Jg=
7+
github.com/CycloneDX/cyclonedx-go v0.9.3 h1:Pyk/lwavPz7AaZNvugKFkdWOm93MzaIyWmBwmBo3aUI=
8+
github.com/CycloneDX/cyclonedx-go v0.9.3/go.mod h1:vcK6pKgO1WanCdd61qx4bFnSsDJQ6SbM2ZuMIgq86Jg=
99
github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY=
1010
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
1111
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=

jas/analyzermanager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const (
5757

5858
type JasDiffScanEnvValue string
5959

60-
var scannersRequiredInstalledSoftwares = []string{
60+
var scannersRequiredInstalledSoftware = []string{
6161
"git", "unzip", "curl",
6262
}
6363

@@ -218,7 +218,7 @@ func DownloadAnalyzerManagerIfNeeded(threadId int) error {
218218
}
219219

220220
func ValidateRequiredInstalledSoftware() (err error) {
221-
for _, software := range scannersRequiredInstalledSoftwares {
221+
for _, software := range scannersRequiredInstalledSoftware {
222222
if softwarePath, e := exec.LookPath(software); e != nil || softwarePath == "" {
223223
err = errors.Join(err, fmt.Errorf("could not find the required '%s' executable in the system PATH to run the Advanced Security Scans", software))
224224
}

0 commit comments

Comments
 (0)