Skip to content

Commit 9fd40e0

Browse files
committed
XRAY-144147 - Onboard Yarn V4 for jf curation-audit
2 parents e29283f + 564a607 commit 9fd40e0

23 files changed

Lines changed: 2851 additions & 101 deletions

File tree

.github/workflows/analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
- name: Run golangci linter
4949
uses: jfrog/.github/actions/golangci-lint@main
5050

51+
- name: Check AI help coverage
52+
uses: jfrog/.github/actions/ai-help-coverage@main
53+
5154
Go-Sec:
5255
runs-on: ubuntu-latest
5356
steps:

artifactory_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ func clearOrRedirectLocalCacheIfNeeded(t *testing.T, projectType project.Project
225225
envVarCallbackFunc()
226226
createTempDirCallback()
227227
}
228+
case project.Poetry:
229+
poetryTempCachePath, createTempDirCallback := coreTests.CreateTempDirWithCallbackAndAssert(t)
230+
envVarCallbackFunc := clientTests.SetEnvWithCallbackAndAssert(t, "POETRY_CACHE_DIR", poetryTempCachePath)
231+
callbackFunc = func() {
232+
envVarCallbackFunc()
233+
createTempDirCallback()
234+
}
228235
}
229236
return
230237
}

cli/docs/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ var flagsMap = map[string]components.Flag{
317317
WorkingDirs: components.NewStringFlag(WorkingDirs, "A comma-separated(,) list of relative working directories, to determine the audit targets locations. If flag isn't provided, a recursive scan is triggered from the root directory of the project."),
318318
OutputDir: components.NewStringFlag(OutputDir, "Target directory to save partial results to.", components.SetHiddenStrFlag()),
319319
UploadRepoPath: components.NewStringFlag(UploadRepoPath, "Artifactory repository name or path to upload the cyclonedx file to. If no name or path are provided, a local generic repository will be created which will automatically be indexed by Xray.", components.WithStrDefaultValue("import-cdx-scan-results")),
320-
SkipAutoInstall: components.NewBoolFlag(SkipAutoInstall, "Set to true to skip auto-install of dependencies in un-built modules. Currently supported only for some package managers.", components.SetHiddenBoolFlag()),
320+
SkipAutoInstall: components.NewBoolFlag(SkipAutoInstall, "Set to true to skip auto-install of dependencies in un-built modules. Currently supported for Yarn, NPM, Pip, and Poetry.", components.SetHiddenBoolFlag()),
321321
AllowPartialResults: components.NewBoolFlag(AllowPartialResults, "Set to true to allow partial results and continuance of the scan in case of certain errors.", components.SetHiddenBoolFlag()),
322322
ExclusionsAudit: components.NewStringFlag(
323323
Exclusions,

commands/curation/curationaudit.go

Lines changed: 302 additions & 3 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)