Skip to content

Commit 66fcfa9

Browse files
committed
add xray scan lib to resources in home
1 parent c18c6cc commit 66fcfa9

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFI
2121
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4=
2222
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
2323
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
24-
github.com/attiasas/jfrog-client-go v0.0.0-20251027091559-b3d20c0c4c64 h1:Cn41pu2bfTjWq18sm/GgLJCkSZUtgKZM6CeIjuUmw7E=
25-
github.com/attiasas/jfrog-client-go v0.0.0-20251027091559-b3d20c0c4c64/go.mod h1:7E859kSn1CaF9A2LH/zAXNPO6bGViNoJ0yqEJYwCu0E=
26-
github.com/attiasas/jfrog-client-go v0.0.0-20251030094108-376296f968cc h1:AJQueJft8TFJ7s46cr8saEFGfcJEDAxUJ/rhkCnWsP0=
27-
github.com/attiasas/jfrog-client-go v0.0.0-20251030094108-376296f968cc/go.mod h1:wsMEtoyAu/1bARUHxFdmgz83g96ml7ZWcFioIPiuz/U=
2824
github.com/beevik/etree v1.4.0 h1:oz1UedHRepuY3p4N5OjE0nK1WLCqtzHf25bxplKOHLs=
2925
github.com/beevik/etree v1.4.0/go.mod h1:cyWiXwGoasx60gHvtnEh5x8+uIjUVnjWqBvEnhnqKDA=
3026
github.com/bradleyjkemp/cupaloy/v2 v2.8.0 h1:any4BmKE+jGIaMpnU8YgH/I2LPiLBufr6oMMlVBbn9M=

tests/utils/integration/test_integrationutils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,9 @@ func PrepareJfrogHomeResources(details *config.ServerDetails) (err error) {
527527
if err = testUtils.PrepareIndexerAppResource(details); err != nil {
528528
return fmt.Errorf("failed to prepare Xray Indexer resource: %w", err)
529529
}
530+
if err = testUtils.PrepareXrayScanLibResource(); err != nil {
531+
return fmt.Errorf("failed to prepare Xray Scan Lib resource: %w", err)
532+
}
530533
return
531534
}
532535

tests/utils/test_utils.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"time"
1313

1414
"github.com/jfrog/jfrog-cli-security/sca/bom/indexer"
15+
"github.com/jfrog/jfrog-cli-security/sca/bom/xrayplugin/plugin"
1516
"github.com/jfrog/jfrog-cli-security/utils/formats"
1617
"github.com/jfrog/jfrog-cli-security/utils/formats/sarifutils"
1718
"github.com/owenrumney/go-sarif/v3/pkg/report/v210/sarif"
@@ -454,3 +455,7 @@ func PrepareIndexerAppResource(details *config.ServerDetails) (err error) {
454455
_, err = indexer.DownloadIndexerIfNeeded(manager, version)
455456
return err
456457
}
458+
459+
func PrepareXrayScanLibResource() (err error) {
460+
return plugin.DownloadXrayLibPluginIfNeeded()
461+
}

0 commit comments

Comments
 (0)