Skip to content

Commit fd9ac28

Browse files
authored
Merge branch 'dev' into XRAY-129870-python-hyphens-fix
2 parents 77ec612 + 93636fe commit fd9ac28

File tree

99 files changed

+7590
-3954
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+7590
-3954
lines changed

.github/actions/install-and-setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ runs:
1212
steps:
1313
# Install dependencies
1414
- name: Setup Go
15-
uses: actions/setup-go@v6
15+
uses: actions/setup-go@v5
1616
with:
17-
go-version: 1.24.x
17+
go-version: 1.25
1818
# - name: Setup Go with cache
1919
# uses: jfrog/.github/actions/install-go-with-cache@main
2020

@@ -39,7 +39,7 @@ runs:
3939
uses: actions/setup-java@v5
4040
with:
4141
java-version: "11"
42-
distribution: "adopt"
42+
distribution: "corretto"
4343
- name: Setup Gradle
4444
uses: gradle/actions/setup-gradle@v3
4545
with:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ concurrency:
2323
# Environment variables shared across all jobs.
2424
env:
2525
GOPROXY: direct
26-
GO_COMMON_TEST_ARGS: "-v github.com/jfrog/jfrog-cli-security --race --timeout 30m --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --test.containerRegistry=${{ secrets.CONTAINER_REGISTRY }}"
26+
GO_COMMON_TEST_ARGS: "-v github.com/jfrog/jfrog-cli-security --race --timeout 40m --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --test.containerRegistry=${{ secrets.CONTAINER_REGISTRY }}"
2727
GRADLE_OPTS: -Dorg.gradle.daemon=false
2828
CI: true
2929
JFROG_CLI_LOG_LEVEL: DEBUG

artifactory_test.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ func TestDependencyResolutionFromArtifactory(t *testing.T) {
113113
projectType: project.Poetry,
114114
},
115115
}
116-
securityIntegrationTestUtils.CreateJfrogHomeConfig(t, "", true)
117-
defer securityTestUtils.CleanTestsHomeEnv()
116+
cleanUp := securityIntegrationTestUtils.UseTestHomeWithDefaultXrayConfig(t)
117+
defer cleanUp()
118118

119119
for _, testCase := range testCases {
120120
t.Run(testCase.projectType.String(), func(t *testing.T) {
121121
if testCase.skipMsg != "" {
122-
securityTestUtils.SkipTestIfDurationNotPassed(t, "22-10-2025", 30, testCase.skipMsg)
122+
securityTestUtils.SkipTestIfDurationNotPassed(t, "22-11-2025", 30, testCase.skipMsg)
123123
}
124124
testSingleTechDependencyResolution(t, testCase.testProjectPath, testCase.resolveRepoName, testCase.cacheRepoName, testCase.projectType)
125125
})
@@ -271,8 +271,8 @@ func TestUploadCdxCmdCommand(t *testing.T) {
271271
// Create a temporary cdx file with suffix .cdx.json to upload
272272
tempDirPath, createTempDirCallback := coreTests.CreateTempDirWithCallbackAndAssert(t)
273273
defer createTempDirCallback()
274-
securityIntegrationTestUtils.CreateJfrogHomeConfig(t, tempDirPath, true)
275-
defer securityTestUtils.CleanTestsHomeEnv()
274+
cleanUp := securityIntegrationTestUtils.CreateJfrogHomeConfig(t, tempDirPath, securityTests.RtDetails, true)
275+
defer cleanUp()
276276
cdxFileToUpload := getTestCdxFile(t, tempDirPath)
277277
// Configure the repository to upload the cdx file to
278278
var repoPath string
@@ -368,7 +368,9 @@ func getTestCdxFile(t *testing.T, tempDir string) string {
368368
cdxFilePath := filepath.Join(tempDir, fmt.Sprintf("upload-integration-test-%s.cdx.json", utils.GetCurrentTimeUnix()))
369369
file, err := os.Create(cdxFilePath)
370370
assert.NoError(t, err)
371-
defer file.Close()
371+
defer func() {
372+
assert.NoError(t, file.Close())
373+
}()
372374
// Write the BOM to the file
373375
assert.NoError(t, cyclonedx.NewBOMEncoder(file, cyclonedx.BOMFileFormatJSON).SetPretty(true).Encode(bom))
374376
return cdxFilePath

0 commit comments

Comments
 (0)