From 037d70fe142c933e80538f67ef333801eac2aa3b Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Fri, 25 Sep 2026 16:06:31 +0000 Subject: [PATCH 1/6] Update codebase for Harness Code repo and add SCS/SSCA SBOM generation step --- .../pipelines/java_client_ci.yaml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml index 20856771..c59fc86f 100644 --- a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml +++ b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml @@ -1,13 +1,13 @@ pipeline: name: java-client-ci identifier: java_client_ci + description: CI pipeline for java-client that builds, tests, runs Sonar analysis, and generates an SBOM for the Harness Code repository. projectIdentifier: Harness_Split orgIdentifier: PROD tags: {} properties: ci: codebase: - connectorRef: fmegithubrunnersci repoName: java-client build: <+input> depth: 0 @@ -107,3 +107,24 @@ pipeline: fi when: stageStatus: Success + # SCS/SSCA: generate SBOM for the Harness Code repository + - step: + type: SscaOrchestration + name: scs repo scan + identifier: scs_repo_scan + spec: + mode: generation + tool: + type: Syft + spec: + format: spdx-json + source: + type: repository + spec: + url: <+codebase.gitUrl> + path: /harness + variant_type: branch + variant: <+codebase.branch> + cloned_codebase: "true" + when: + stageStatus: Success From 98d81bdcbd3a8e60ec2ca0b02836d9a51fbd1183 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Fri, 25 Sep 2026 16:18:46 +0000 Subject: [PATCH 2/6] Fix SscaOrchestration scs_repo_scan step: set mandatory repository URL --- .../PROD/projects/Harness_Split/pipelines/java_client_ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml index c59fc86f..44182651 100644 --- a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml +++ b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml @@ -121,7 +121,7 @@ pipeline: source: type: repository spec: - url: <+codebase.gitUrl> + url: https://github.com/splitio/java-client path: /harness variant_type: branch variant: <+codebase.branch> From 6a7a87977a52fd4b4b4aed0e0b913667575e78f9 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Fri, 25 Sep 2026 16:26:41 +0000 Subject: [PATCH 3/6] Add native GitClone step for Harness Code repo and fix SscaOrchestration repository URL --- .../Harness_Split/pipelines/java_client_ci.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml index 44182651..3545428e 100644 --- a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml +++ b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml @@ -17,7 +17,7 @@ pipeline: identifier: test type: CI spec: - cloneCodebase: true + cloneCodebase: false caching: enabled: true override: true @@ -29,6 +29,18 @@ pipeline: spec: {} execution: steps: + # Explicit native clone of the Harness Code repository + - step: + type: GitClone + name: clone java-client + identifier: clone_java_client + spec: + repoName: java-client + cloneDirectory: /harness + build: + type: branch + spec: + branch: <+codebase.branch> # JDK 8: build + test + checkstyle (PR only) - step: type: Run @@ -121,7 +133,7 @@ pipeline: source: type: repository spec: - url: https://github.com/splitio/java-client + url: https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Split/java-client.git path: /harness variant_type: branch variant: <+codebase.branch> From 93aaf398ece91cc1aca98702b241990a41cef979 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Fri, 25 Sep 2026 16:37:11 +0000 Subject: [PATCH 4/6] Remove invalid cloneDirectory value on GitClone step --- .../PROD/projects/Harness_Split/pipelines/java_client_ci.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml index 3545428e..6a23f13a 100644 --- a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml +++ b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml @@ -36,7 +36,6 @@ pipeline: identifier: clone_java_client spec: repoName: java-client - cloneDirectory: /harness build: type: branch spec: From e83e898f7811d8dfb02d55db9edd71b6d5aae47e Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Fri, 25 Sep 2026 16:46:23 +0000 Subject: [PATCH 5/6] Revert to cloning from GitHub via explicit codebase connectorRef; remove GitClone step --- .../pipelines/java_client_ci.yaml | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml index 6a23f13a..d99b77ba 100644 --- a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml +++ b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml @@ -1,13 +1,14 @@ pipeline: name: java-client-ci identifier: java_client_ci - description: CI pipeline for java-client that builds, tests, runs Sonar analysis, and generates an SBOM for the Harness Code repository. + description: CI pipeline for java-client that builds, tests, runs Sonar analysis, and generates an SBOM for the GitHub repository. projectIdentifier: Harness_Split orgIdentifier: PROD tags: {} properties: ci: codebase: + connectorRef: fmegithubrunnersci repoName: java-client build: <+input> depth: 0 @@ -17,7 +18,7 @@ pipeline: identifier: test type: CI spec: - cloneCodebase: false + cloneCodebase: true caching: enabled: true override: true @@ -29,17 +30,6 @@ pipeline: spec: {} execution: steps: - # Explicit native clone of the Harness Code repository - - step: - type: GitClone - name: clone java-client - identifier: clone_java_client - spec: - repoName: java-client - build: - type: branch - spec: - branch: <+codebase.branch> # JDK 8: build + test + checkstyle (PR only) - step: type: Run @@ -118,7 +108,7 @@ pipeline: fi when: stageStatus: Success - # SCS/SSCA: generate SBOM for the Harness Code repository + # SCS/SSCA: generate SBOM for the GitHub repository - step: type: SscaOrchestration name: scs repo scan @@ -132,7 +122,7 @@ pipeline: source: type: repository spec: - url: https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Split/java-client.git + url: https://github.com/splitio/java-client path: /harness variant_type: branch variant: <+codebase.branch> From af2df4142ee2fcb6651b5b59373607e8f2c12b26 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Fri, 25 Sep 2026 16:56:56 +0000 Subject: [PATCH 6/6] Move scs_repo_scan step to run first, before test_jdk8 --- .../pipelines/java_client_ci.yaml | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml index d99b77ba..8ffb6260 100644 --- a/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml +++ b/.harness/orgs/PROD/projects/Harness_Split/pipelines/java_client_ci.yaml @@ -30,6 +30,27 @@ pipeline: spec: {} execution: steps: + # SCS/SSCA: generate SBOM for the GitHub repository + - step: + type: SscaOrchestration + name: scs repo scan + identifier: scs_repo_scan + spec: + mode: generation + tool: + type: Syft + spec: + format: spdx-json + source: + type: repository + spec: + url: https://github.com/splitio/java-client + path: /harness + variant_type: branch + variant: <+codebase.branch> + cloned_codebase: "true" + when: + stageStatus: Success # JDK 8: build + test + checkstyle (PR only) - step: type: Run @@ -108,24 +129,3 @@ pipeline: fi when: stageStatus: Success - # SCS/SSCA: generate SBOM for the GitHub repository - - step: - type: SscaOrchestration - name: scs repo scan - identifier: scs_repo_scan - spec: - mode: generation - tool: - type: Syft - spec: - format: spdx-json - source: - type: repository - spec: - url: https://github.com/splitio/java-client - path: /harness - variant_type: branch - variant: <+codebase.branch> - cloned_codebase: "true" - when: - stageStatus: Success