From 07521ea24be330d7a10941c159cc0f7fabacd373 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 09:46:29 +0100 Subject: [PATCH 01/12] fix: github yml --- ci-cd/GitHub/splxai-test.yml | 77 ++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/ci-cd/GitHub/splxai-test.yml b/ci-cd/GitHub/splxai-test.yml index 9a1e3b3..463e1ac 100644 --- a/ci-cd/GitHub/splxai-test.yml +++ b/ci-cd/GitHub/splxai-test.yml @@ -7,6 +7,7 @@ # # The following values should be added as environment variables with the key being secret # SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings +# SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) # SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings # SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) # SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -21,19 +22,19 @@ name: SplxAI Test on: # Triggers the workflow on push or pull request events but only for the "main" branch push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: env: - SPLXAI_TARGET_ID: 000 - # SPLXAI_API_KEY: .... # Defined as a secret variable: https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions - SPLXAI_PLATFORM_URL: "https://probe.splx.ai" - SPLXAI_API_URL: "https://api.probe.splx.ai" - + SPLXAI_TARGET_ID: 000 + SPLXAI_WORKSPACE_ID: 000 + # SPLXAI_API_KEY: .... # Defined as a secret variable: https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions + SPLXAI_PLATFORM_URL: "https://probe.splx.ai" + SPLXAI_API_URL: "https://api.probe.splx.ai" # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -52,36 +53,36 @@ jobs: env: SPLXAI_API_KEY: ${{ secrets.SPLXAI_API_KEY }} run: | - sudo apt-get -qq update - sudo apt-get install -y jq - - echo "###### Start SplxAI Test Run #######" - REQUEST_BODY=$(cat <<-EOF - { - "targetId": $SPLXAI_TARGET_ID, - "probeIds": [1], - "name": "GitHub CI/CD Test Run" - } - EOF - ) + sudo apt-get -qq update + sudo apt-get install -y jq + + echo "###### Start SplxAI Test Run #######" + REQUEST_BODY=$(cat <<-EOF + { + "targetId": $SPLXAI_TARGET_ID, + "probeIds": [1], + "name": "GitHub CI/CD Test Run" + } + EOF + ) + + echo $REQUEST_BODY + + RESPONSE=$(curl -s --request POST \ + --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ + --header 'Content-Type: application/json' \ + --header "X-Api-Key: $SPLXAI_API_KEY" \ + --data "$REQUEST_BODY") + + echo $RESPONSE - echo $REQUEST_BODY - - RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/v2/test-run/trigger \ - --header 'Content-Type: application/json' \ - --header "X-Api-Key: $SPLXAI_API_KEY" \ - --data "$REQUEST_BODY") + TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') + if [ -z "$TEST_RUN_ID" ]; then + echo "Error: Failed to trigger Test Run!" + echo "Response: $RESPONSE" + exit 1 + fi - echo $RESPONSE - - TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') - if [ -z "$TEST_RUN_ID" ]; then - echo "Error: Failed to trigger Test Run!" - echo "Response: $RESPONSE" - exit 1 - fi - - echo "###### Triggered SplxAI Test Run #######" - echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/target/$SPLXAI_TARGET_ID/test-run-history/$TEST_RUN_ID" + echo "###### Triggered SplxAI Test Run #######" + echo "=> Click on the link below to see the Test Run results" + echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" From 896fa9d6bffd30df14350112977d1a4b29d95cb8 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 09:50:09 +0100 Subject: [PATCH 02/12] fix: azure yml --- ci-cd/AzureDevOps/azure-pipelines.yml | 83 ++++++++++++++------------- 1 file changed, 43 insertions(+), 40 deletions(-) diff --git a/ci-cd/AzureDevOps/azure-pipelines.yml b/ci-cd/AzureDevOps/azure-pipelines.yml index ac9dd3e..0f40880 100644 --- a/ci-cd/AzureDevOps/azure-pipelines.yml +++ b/ci-cd/AzureDevOps/azure-pipelines.yml @@ -7,6 +7,7 @@ # # The following values should be added as environment variables with the key being secret # SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings +# SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) # SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings # SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) # SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -16,52 +17,54 @@ # trigger: -- main + - main pool: vmImage: ubuntu-latest variables: -- name: SPLXAI_TARGET_ID - value: 000 -- name: SPLXAI_PLATFORM_URL - value: "https://probe.splx.ai" -- name: SPLXAI_API_URL - value: "https://api.probe.splx.ai" + - name: SPLXAI_TARGET_ID + value: 000 + - name: SPLXAI_WORKSPACE_ID + value: 000 + - name: SPLXAI_PLATFORM_URL + value: "https://probe.splx.ai" + - name: SPLXAI_API_URL + value: "https://api.probe.splx.ai" steps: -- script: | - sudo apt-get -qq update - sudo apt-get install -y jq - - echo "###### Start SplxAI Test Run #######" - REQUEST_BODY=$(cat <<-EOF - { - "targetId": $SPLXAI_TARGET_ID, - "probeIds": [1], - "name": "AZDO CI/CD Test Run" - } - EOF - ) + - script: | + sudo apt-get -qq update + sudo apt-get install -y jq - RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/v2/test-run/trigger \ - --header 'Content-Type: application/json' \ - --header "X-Api-Key: $SPLXAI_API_KEY" \ - --data "$REQUEST_BODY") - - TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') - if [ -z "$TEST_RUN_ID" ]; then - echo "Error: Failed to trigger Test Run!" - echo "Response: $RESPONSE" - exit 1 - fi - - echo "###### Triggered SplxAI Test Run #######" - echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/target/$SPLXAI_TARGET_ID/test-run-history/$TEST_RUN_ID" - - env: - SPLXAI_API_KEY: $(SPLXAI_API_KEY) # add your secret vaeriable https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-secret-variables?view=azure-devops + echo "###### Start SplxAI Test Run #######" + REQUEST_BODY=$(cat <<-EOF + { + "targetId": $SPLXAI_TARGET_ID, + "probeIds": [1], + "name": "AZDO CI/CD Test Run" + } + EOF + ) - displayName: 'SplxAI Test' + RESPONSE=$(curl -s --request POST \ + --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ + --header 'Content-Type: application/json' \ + --header "X-Api-Key: $SPLXAI_API_KEY" \ + --data "$REQUEST_BODY") + + TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') + if [ -z "$TEST_RUN_ID" ]; then + echo "Error: Failed to trigger Test Run!" + echo "Response: $RESPONSE" + exit 1 + fi + + echo "###### Triggered SplxAI Test Run #######" + echo "=> Click on the link below to see the Test Run results" + echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + + env: + SPLXAI_API_KEY: $(SPLXAI_API_KEY) # add your secret vaeriable https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-secret-variables?view=azure-devops + + displayName: "SplxAI Test" From 22babf4ded1f9443d99dad92cca6acdc7a42ef1c Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 09:52:26 +0100 Subject: [PATCH 03/12] fix: bitbucket yml --- ci-cd/Bitbucket/bitbucket-pipelines.yml | 55 ++++++++++++++----------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/ci-cd/Bitbucket/bitbucket-pipelines.yml b/ci-cd/Bitbucket/bitbucket-pipelines.yml index da694be..a6e8554 100644 --- a/ci-cd/Bitbucket/bitbucket-pipelines.yml +++ b/ci-cd/Bitbucket/bitbucket-pipelines.yml @@ -8,6 +8,7 @@ # # The following values should be added as environment variables with the key being secret # SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings +# SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) # SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings # SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) # SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -22,32 +23,36 @@ image: atlassian/default-image:3 pipelines: default: - - step: - name: 'SplxAI Test' + - step: + name: "SplxAI Test" script: - - | - apt-get -qq update - apt-get install -y jq + - | + apt-get -qq update + apt-get install -y jq - echo "###### Start SplxAI Test Run #######" - REQUEST_BODY=$(cat <<-EOF - { - "targetId": $SPLXAI_TARGET_ID, - "probeIds": [1], - "name": "Bitbucket CI/CD Test Run" - } - EOF - ) + echo "###### Start SplxAI Test Run #######" + REQUEST_BODY=$(cat <<-EOF + { + "targetId": $SPLXAI_TARGET_ID, + "probeIds": [1], + "name": "Bitbucket CI/CD Test Run" + } + EOF + ) - RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/v2/test-run/trigger \ - --header 'Content-Type: application/json' \ - --header "X-Api-Key: $SPLXAI_API_KEY" \ - --data "$REQUEST_BODY") + RESPONSE=$(curl -s --request POST \ + --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ + --header 'Content-Type: application/json' \ + --header "X-Api-Key: $SPLXAI_API_KEY" \ + --data "$REQUEST_BODY") - TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') - if [ -z "$TEST_RUN_ID" ]; then - echo "Error: Failed to trigger Test Run!" - echo "Response: $RESPONSE" - exit 1 - fi + TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') + if [ -z "$TEST_RUN_ID" ]; then + echo "Error: Failed to trigger Test Run!" + echo "Response: $RESPONSE" + exit 1 + fi + + echo "###### Triggered SplxAI Test Run #######" + echo "=> Click on the link below to see the Test Run results" + echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" From 0cc2ccb0f4ac59dfb1358761f5f8cd6d80b36f00 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 09:54:17 +0100 Subject: [PATCH 04/12] fix: gitlab yml --- ci-cd/GitLab/gitlab-ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ci-cd/GitLab/gitlab-ci.yml b/ci-cd/GitLab/gitlab-ci.yml index 07912dd..1942664 100644 --- a/ci-cd/GitLab/gitlab-ci.yml +++ b/ci-cd/GitLab/gitlab-ci.yml @@ -7,6 +7,7 @@ # # The following values should be added as environment variables with the key being secret # SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings +# SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) # SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings # SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) # SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -22,17 +23,18 @@ stages: splxai-test: stage: test - + variables: - SPLXAI_TARGET_ID: 000 + SPLXAI_TARGET_ID: 000 + SPLXAI_WORKSPACE_ID: 000 # SPLXAI_API_KEY: .... # Defined as a secret variable: https://docs.gitlab.com/ee/ci/variables/ SPLXAI_PLATFORM_URL: "https://probe.splx.ai" SPLXAI_API_URL: "https://api.probe.splx.ai" - + script: | apt-get -qq update apt-get install -y jq - + echo "###### Start SplxAI Test Run #######" REQUEST_BODY=$(cat <<-EOF { @@ -44,18 +46,18 @@ splxai-test: ) RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/v2/test-run/trigger \ + --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ --header 'Content-Type: application/json' \ --header "X-Api-Key: $SPLXAI_API_KEY" \ --data "$REQUEST_BODY") - + TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') if [ -z "$TEST_RUN_ID" ]; then echo "Error: Failed to trigger Test Run!" echo "Response: $RESPONSE" exit 1 fi - + echo "###### Triggered SplxAI Test Run #######" echo "=> Click on the link below to see the Test Run results" echo "=> https://probe.splx.ai/target/$SPLXAI_TARGET_ID/test-run-history/$TEST_RUN_ID" From bc855727695e1364a812ca26b49aaf2b7e615947 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 09:56:01 +0100 Subject: [PATCH 05/12] fix: generic --- ci-cd/generic/bash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci-cd/generic/bash.sh b/ci-cd/generic/bash.sh index bc315c2..bbca723 100644 --- a/ci-cd/generic/bash.sh +++ b/ci-cd/generic/bash.sh @@ -12,7 +12,7 @@ ) RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/v2/test-run/trigger \ + --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ --header 'Content-Type: application/json' \ --header "X-Api-Key: $SPLXAI_API_KEY" \ --data "$REQUEST_BODY") @@ -26,4 +26,4 @@ echo "###### Triggered SplxAI Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/target/$SPLXAI_TARGET_ID/test-run-history/$TEST_RUN_ID" + echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" From 1861b17b8483b4d3f8e5ee6c73946f928623b143 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 09:57:06 +0100 Subject: [PATCH 06/12] fix: jenkins --- ci-cd/Jenkins/splxai-test.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci-cd/Jenkins/splxai-test.groovy b/ci-cd/Jenkins/splxai-test.groovy index caea80b..f504443 100644 --- a/ci-cd/Jenkins/splxai-test.groovy +++ b/ci-cd/Jenkins/splxai-test.groovy @@ -7,6 +7,7 @@ // // The following values should be added as environment variables. // SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings +// SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) // SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings // SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) // SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -20,6 +21,7 @@ pipeline { environment { SPLXAI_TARGET_ID = 000 + SPLXAI_WORKSPACE_ID = 000 SPLXAI_PLATFORM_URL = "https://probe.splx.ai" SPLXAI_API_URL = "https://api.probe.splx.ai" } @@ -43,7 +45,7 @@ pipeline { ) RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/v2/test-run/trigger \ + --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ --header 'Content-Type: application/json' \ --header "X-Api-Key: $SPLXAI_API_KEY" \ --data "$REQUEST_BODY") @@ -57,7 +59,7 @@ pipeline { echo "###### Triggered SplxAI Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/target/$SPLXAI_TARGET_ID/test-run-history/$TEST_RUN_ID" + echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" ''' } } From abaf9ff0c618b224d085cdc886b1f0da162da049 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 11:05:24 +0100 Subject: [PATCH 07/12] fix: remove hardcoded list of probe ids --- ci-cd/AzureDevOps/azure-pipelines.yml | 5 ++++- ci-cd/Bitbucket/bitbucket-pipelines.yml | 3 ++- ci-cd/GitHub/splxai-test.yml | 4 +++- ci-cd/GitLab/gitlab-ci.yml | 4 +++- ci-cd/Jenkins/splxai-test.groovy | 4 +++- ci-cd/generic/bash.sh | 2 +- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ci-cd/AzureDevOps/azure-pipelines.yml b/ci-cd/AzureDevOps/azure-pipelines.yml index 0f40880..c29fac4 100644 --- a/ci-cd/AzureDevOps/azure-pipelines.yml +++ b/ci-cd/AzureDevOps/azure-pipelines.yml @@ -8,6 +8,7 @@ # The following values should be added as environment variables with the key being secret # SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings # SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +# SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details # SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings # SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) # SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -27,6 +28,8 @@ variables: value: 000 - name: SPLXAI_WORKSPACE_ID value: 000 + - name: SPLXAI_PROBE_IDS + value: [1] - name: SPLXAI_PLATFORM_URL value: "https://probe.splx.ai" - name: SPLXAI_API_URL @@ -41,7 +44,7 @@ steps: REQUEST_BODY=$(cat <<-EOF { "targetId": $SPLXAI_TARGET_ID, - "probeIds": [1], + "probeIds": $SPLXAI_PROBE_IDS, "name": "AZDO CI/CD Test Run" } EOF diff --git a/ci-cd/Bitbucket/bitbucket-pipelines.yml b/ci-cd/Bitbucket/bitbucket-pipelines.yml index a6e8554..9047fb6 100644 --- a/ci-cd/Bitbucket/bitbucket-pipelines.yml +++ b/ci-cd/Bitbucket/bitbucket-pipelines.yml @@ -9,6 +9,7 @@ # The following values should be added as environment variables with the key being secret # SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings # SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +# SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details # SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings # SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) # SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -34,7 +35,7 @@ pipelines: REQUEST_BODY=$(cat <<-EOF { "targetId": $SPLXAI_TARGET_ID, - "probeIds": [1], + "probeIds": $SPLXAI_PROBE_IDS, "name": "Bitbucket CI/CD Test Run" } EOF diff --git a/ci-cd/GitHub/splxai-test.yml b/ci-cd/GitHub/splxai-test.yml index 463e1ac..2804f35 100644 --- a/ci-cd/GitHub/splxai-test.yml +++ b/ci-cd/GitHub/splxai-test.yml @@ -8,6 +8,7 @@ # The following values should be added as environment variables with the key being secret # SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings # SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +# SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details # SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings # SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) # SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -32,6 +33,7 @@ on: env: SPLXAI_TARGET_ID: 000 SPLXAI_WORKSPACE_ID: 000 + SPLXAI_PROBE_IDS: [1] # SPLXAI_API_KEY: .... # Defined as a secret variable: https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions SPLXAI_PLATFORM_URL: "https://probe.splx.ai" SPLXAI_API_URL: "https://api.probe.splx.ai" @@ -60,7 +62,7 @@ jobs: REQUEST_BODY=$(cat <<-EOF { "targetId": $SPLXAI_TARGET_ID, - "probeIds": [1], + "probeIds": $SPLXAI_PROBE_IDS, "name": "GitHub CI/CD Test Run" } EOF diff --git a/ci-cd/GitLab/gitlab-ci.yml b/ci-cd/GitLab/gitlab-ci.yml index 1942664..0e5d35e 100644 --- a/ci-cd/GitLab/gitlab-ci.yml +++ b/ci-cd/GitLab/gitlab-ci.yml @@ -8,6 +8,7 @@ # The following values should be added as environment variables with the key being secret # SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings # SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +# SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details # SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings # SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) # SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -27,6 +28,7 @@ splxai-test: variables: SPLXAI_TARGET_ID: 000 SPLXAI_WORKSPACE_ID: 000 + SPLXAI_PROBE_IDS: [1] # SPLXAI_API_KEY: .... # Defined as a secret variable: https://docs.gitlab.com/ee/ci/variables/ SPLXAI_PLATFORM_URL: "https://probe.splx.ai" SPLXAI_API_URL: "https://api.probe.splx.ai" @@ -39,7 +41,7 @@ splxai-test: REQUEST_BODY=$(cat <<-EOF { "targetId": $SPLXAI_TARGET_ID, - "probeIds": [1], + "probeIds": $SPLXAI_PROBE_IDS, "name": "GitLab CI/CD Test Run" } EOF diff --git a/ci-cd/Jenkins/splxai-test.groovy b/ci-cd/Jenkins/splxai-test.groovy index f504443..4c392e5 100644 --- a/ci-cd/Jenkins/splxai-test.groovy +++ b/ci-cd/Jenkins/splxai-test.groovy @@ -8,6 +8,7 @@ // The following values should be added as environment variables. // SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings // SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +// SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details // SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings // SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) // SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) @@ -22,6 +23,7 @@ pipeline { environment { SPLXAI_TARGET_ID = 000 SPLXAI_WORKSPACE_ID = 000 + SPLXAI_PROBE_IDS = [1] SPLXAI_PLATFORM_URL = "https://probe.splx.ai" SPLXAI_API_URL = "https://api.probe.splx.ai" } @@ -38,7 +40,7 @@ pipeline { REQUEST_BODY=$(cat <<-EOF { "targetId": $SPLXAI_TARGET_ID, - "probeIds": [1], + "probeIds": $SPLXAI_PROBE_IDS, "name": "Jenkins CI/CD Test Run" } EOF diff --git a/ci-cd/generic/bash.sh b/ci-cd/generic/bash.sh index bbca723..f31ebf0 100644 --- a/ci-cd/generic/bash.sh +++ b/ci-cd/generic/bash.sh @@ -5,7 +5,7 @@ REQUEST_BODY=$(cat <<-EOF { "targetId": $SPLXAI_TARGET_ID, - "probeIds": [1], # add required Probes + "probeIds": $SPLXAI_PROBE_IDS, # add required Probes in the list, e.g [1,2,3] "name": "SplxAI Test Run" } EOF From 345ce5562b3ad3899bfc0f3294d6c08056421a61 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 11:17:24 +0100 Subject: [PATCH 08/12] fix: string list od probeids --- ci-cd/AzureDevOps/azure-pipelines.yml | 2 +- ci-cd/GitHub/splxai-test.yml | 2 +- ci-cd/GitLab/gitlab-ci.yml | 2 +- ci-cd/Jenkins/splxai-test.groovy | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci-cd/AzureDevOps/azure-pipelines.yml b/ci-cd/AzureDevOps/azure-pipelines.yml index c29fac4..3c49a0e 100644 --- a/ci-cd/AzureDevOps/azure-pipelines.yml +++ b/ci-cd/AzureDevOps/azure-pipelines.yml @@ -29,7 +29,7 @@ variables: - name: SPLXAI_WORKSPACE_ID value: 000 - name: SPLXAI_PROBE_IDS - value: [1] + value: "[1]" - name: SPLXAI_PLATFORM_URL value: "https://probe.splx.ai" - name: SPLXAI_API_URL diff --git a/ci-cd/GitHub/splxai-test.yml b/ci-cd/GitHub/splxai-test.yml index 2804f35..6e4caaf 100644 --- a/ci-cd/GitHub/splxai-test.yml +++ b/ci-cd/GitHub/splxai-test.yml @@ -33,7 +33,7 @@ on: env: SPLXAI_TARGET_ID: 000 SPLXAI_WORKSPACE_ID: 000 - SPLXAI_PROBE_IDS: [1] + SPLXAI_PROBE_IDS: "[1]" # SPLXAI_API_KEY: .... # Defined as a secret variable: https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions SPLXAI_PLATFORM_URL: "https://probe.splx.ai" SPLXAI_API_URL: "https://api.probe.splx.ai" diff --git a/ci-cd/GitLab/gitlab-ci.yml b/ci-cd/GitLab/gitlab-ci.yml index 0e5d35e..da1fa0f 100644 --- a/ci-cd/GitLab/gitlab-ci.yml +++ b/ci-cd/GitLab/gitlab-ci.yml @@ -28,7 +28,7 @@ splxai-test: variables: SPLXAI_TARGET_ID: 000 SPLXAI_WORKSPACE_ID: 000 - SPLXAI_PROBE_IDS: [1] + SPLXAI_PROBE_IDS: "[1]" # SPLXAI_API_KEY: .... # Defined as a secret variable: https://docs.gitlab.com/ee/ci/variables/ SPLXAI_PLATFORM_URL: "https://probe.splx.ai" SPLXAI_API_URL: "https://api.probe.splx.ai" diff --git a/ci-cd/Jenkins/splxai-test.groovy b/ci-cd/Jenkins/splxai-test.groovy index 4c392e5..3bafb0f 100644 --- a/ci-cd/Jenkins/splxai-test.groovy +++ b/ci-cd/Jenkins/splxai-test.groovy @@ -23,7 +23,7 @@ pipeline { environment { SPLXAI_TARGET_ID = 000 SPLXAI_WORKSPACE_ID = 000 - SPLXAI_PROBE_IDS = [1] + SPLXAI_PROBE_IDS = "[1]" SPLXAI_PLATFORM_URL = "https://probe.splx.ai" SPLXAI_API_URL = "https://api.probe.splx.ai" } From 7aeb342a0fb29aa590517e063b89b94898dad610 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 11:20:47 +0100 Subject: [PATCH 09/12] fix: splxai into splx --- ci-cd/AzureDevOps/azure-pipelines.yml | 44 ++++++++++++------------- ci-cd/Bitbucket/bitbucket-pipelines.yml | 2 +- ci-cd/GitHub/splxai-test.yml | 2 +- ci-cd/GitLab/gitlab-ci.yml | 2 +- ci-cd/Jenkins/splxai-test.groovy | 42 +++++++++++------------ ci-cd/generic/bash.sh | 2 +- 6 files changed, 47 insertions(+), 47 deletions(-) diff --git a/ci-cd/AzureDevOps/azure-pipelines.yml b/ci-cd/AzureDevOps/azure-pipelines.yml index 3c49a0e..08de413 100644 --- a/ci-cd/AzureDevOps/azure-pipelines.yml +++ b/ci-cd/AzureDevOps/azure-pipelines.yml @@ -1,17 +1,17 @@ -# ******** SplxAI Probe Template for Azure DevOps CI ******** +# ******** SPLX Probe Template for Azure DevOps CI ******** # # ******** Description ******** -# SplxAI Probe will test your GenAI application to detect vulnerabilities and provide remediation. +# SPLX Probe will test your GenAI application to detect vulnerabilities and provide remediation. # # It is recomended to create a new API key with a descriptive name # # The following values should be added as environment variables with the key being secret -# SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings -# SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) -# SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details -# SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings -# SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) -# SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) +# SPLX_TARGET_ID: the Target ID of the pre defined Target, from SPLX Probe, Target Settings +# SPLX_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SPLX Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +# SPLX_PROBE_IDS: list of Probe IDs to run, from SPLX Probe, Probe Settings, Details +# SPLX_API_KEY: the API key generated from SPLX Probe, Account Settings +# SPLX_PLATFORM_URL: the SPLX url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) +# SPLX_API_URL: the SPLX url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) # # For more configuration options, please check the technical documentation portal: # 📚 https://probe.splx.ai/probe-documentation @@ -24,15 +24,15 @@ pool: vmImage: ubuntu-latest variables: - - name: SPLXAI_TARGET_ID + - name: SPLX_TARGET_ID value: 000 - - name: SPLXAI_WORKSPACE_ID + - name: SPLX_WORKSPACE_ID value: 000 - - name: SPLXAI_PROBE_IDS + - name: SPLX_PROBE_IDS value: "[1]" - - name: SPLXAI_PLATFORM_URL + - name: SPLX_PLATFORM_URL value: "https://probe.splx.ai" - - name: SPLXAI_API_URL + - name: SPLX_API_URL value: "https://api.probe.splx.ai" steps: @@ -40,20 +40,20 @@ steps: sudo apt-get -qq update sudo apt-get install -y jq - echo "###### Start SplxAI Test Run #######" + echo "###### Start SPLX Test Run #######" REQUEST_BODY=$(cat <<-EOF { - "targetId": $SPLXAI_TARGET_ID, - "probeIds": $SPLXAI_PROBE_IDS, + "targetId": $SPLX_TARGET_ID, + "probeIds": $SPLX_PROBE_IDS, "name": "AZDO CI/CD Test Run" } EOF ) RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ + --url $SPLX_API_URL/api/workspaces/$SPLX_WORKSPACE_ID/test-run/trigger \ --header 'Content-Type: application/json' \ - --header "X-Api-Key: $SPLXAI_API_KEY" \ + --header "X-Api-Key: $SPLX_API_KEY" \ --data "$REQUEST_BODY") TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') @@ -63,11 +63,11 @@ steps: exit 1 fi - echo "###### Triggered SplxAI Test Run #######" + echo "###### Triggered SPLX Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + echo "=> $SPLX_PLATFORM_URL/w/$SPLX_WORKSPACE_ID/target/$SPLX_TARGET_ID/test-runs/$TEST_RUN_ID" env: - SPLXAI_API_KEY: $(SPLXAI_API_KEY) # add your secret vaeriable https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-secret-variables?view=azure-devops + SPLX_API_KEY: $(SPLX_API_KEY) # add your secret vaeriable https://learn.microsoft.com/en-us/azure/devops/pipelines/process/set-secret-variables?view=azure-devops - displayName: "SplxAI Test" + displayName: "SPLX Test" diff --git a/ci-cd/Bitbucket/bitbucket-pipelines.yml b/ci-cd/Bitbucket/bitbucket-pipelines.yml index 9047fb6..909587c 100644 --- a/ci-cd/Bitbucket/bitbucket-pipelines.yml +++ b/ci-cd/Bitbucket/bitbucket-pipelines.yml @@ -56,4 +56,4 @@ pipelines: echo "###### Triggered SplxAI Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + echo "=> $SPLXAI_PLATFORM_URL/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" diff --git a/ci-cd/GitHub/splxai-test.yml b/ci-cd/GitHub/splxai-test.yml index 6e4caaf..cf4ff5e 100644 --- a/ci-cd/GitHub/splxai-test.yml +++ b/ci-cd/GitHub/splxai-test.yml @@ -87,4 +87,4 @@ jobs: echo "###### Triggered SplxAI Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + echo "=> $SPLXAI_PLATFORM_URL/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" diff --git a/ci-cd/GitLab/gitlab-ci.yml b/ci-cd/GitLab/gitlab-ci.yml index da1fa0f..cff82a9 100644 --- a/ci-cd/GitLab/gitlab-ci.yml +++ b/ci-cd/GitLab/gitlab-ci.yml @@ -62,4 +62,4 @@ splxai-test: echo "###### Triggered SplxAI Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/target/$SPLXAI_TARGET_ID/test-run-history/$TEST_RUN_ID" + echo "=> $SPLXAI_PLATFORM_URL/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" diff --git a/ci-cd/Jenkins/splxai-test.groovy b/ci-cd/Jenkins/splxai-test.groovy index 3bafb0f..d2b9f66 100644 --- a/ci-cd/Jenkins/splxai-test.groovy +++ b/ci-cd/Jenkins/splxai-test.groovy @@ -1,17 +1,17 @@ -// ******** SplxAI Probe Template for Jenkins CI ******** +// ******** SPLX Probe Template for Jenkins CI ******** // // ******** Description ******** -// SplxAI Probe will test your GenAI application to detect vulnerabilities and provide remediation. +// SPLX Probe will test your GenAI application to detect vulnerabilities and provide remediation. // // It is recomended to create a new API key with a descriptive name // // The following values should be added as environment variables. -// SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings -// SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) -// SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details -// SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings -// SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) -// SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) +// SPLX_TARGET_ID: the Target ID of the pre defined Target, from SPLX Probe, Target Settings +// SPLX_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SPLX Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +// SPLX_PROBE_IDS: list of Probe IDs to run, from SPLX Probe, Probe Settings, Details +// SPLX_API_KEY: the API key generated from SPLX Probe, Account Settings +// SPLX_PLATFORM_URL: the SPLX url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) +// SPLX_API_URL: the SPLX url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) // // For more configuration options, please check the technical documentation portal: // 📚 https://probe.splx.ai/probe-documentation @@ -21,35 +21,35 @@ pipeline { agent any environment { - SPLXAI_TARGET_ID = 000 - SPLXAI_WORKSPACE_ID = 000 - SPLXAI_PROBE_IDS = "[1]" - SPLXAI_PLATFORM_URL = "https://probe.splx.ai" - SPLXAI_API_URL = "https://api.probe.splx.ai" + SPLX_TARGET_ID = 000 + SPLX_WORKSPACE_ID = 000 + SPLX_PROBE_IDS = "[1]" + SPLX_PLATFORM_URL = "https://probe.splx.ai" + SPLX_API_URL = "https://api.probe.splx.ai" } stages { - stage('SplxAI Test') { + stage('SPLX Test') { steps { sh ''' apt-get -qq update apt-get install -y jq - echo "###### Start SplxAI Test Run #######" + echo "###### Start SPLX Test Run #######" REQUEST_BODY=$(cat <<-EOF { - "targetId": $SPLXAI_TARGET_ID, - "probeIds": $SPLXAI_PROBE_IDS, + "targetId": $SPLX_TARGET_ID, + "probeIds": $SPLX_PROBE_IDS, "name": "Jenkins CI/CD Test Run" } EOF ) RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ + --url $SPLX_API_URL/api/workspaces/$SPLX_WORKSPACE_ID/test-run/trigger \ --header 'Content-Type: application/json' \ - --header "X-Api-Key: $SPLXAI_API_KEY" \ + --header "X-Api-Key: $SPLX_API_KEY" \ --data "$REQUEST_BODY") TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') @@ -59,9 +59,9 @@ pipeline { exit 1 fi - echo "###### Triggered SplxAI Test Run #######" + echo "###### Triggered SPLX Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + echo "=> $SPLX_PLATFORM_URL/w/$SPLX_WORKSPACE_ID/target/$SPLX_TARGET_ID/test-runs/$TEST_RUN_ID" ''' } } diff --git a/ci-cd/generic/bash.sh b/ci-cd/generic/bash.sh index f31ebf0..9ba5e28 100644 --- a/ci-cd/generic/bash.sh +++ b/ci-cd/generic/bash.sh @@ -26,4 +26,4 @@ echo "###### Triggered SplxAI Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> https://probe.splx.ai/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + echo "=> $SPLXAI_PLATFORM_URL/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" From 4d4a43ff46a7eaffa41f4725245f00679b8650ef Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 11:21:20 +0100 Subject: [PATCH 10/12] fix: splxai into splx --- ci-cd/generic/bash.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ci-cd/generic/bash.sh b/ci-cd/generic/bash.sh index 9ba5e28..6ee8649 100644 --- a/ci-cd/generic/bash.sh +++ b/ci-cd/generic/bash.sh @@ -1,20 +1,20 @@ apt-get -qq update apt-get install -y jq - echo "###### Start SplxAI Test Run #######" + echo "###### Start SPLX Test Run #######" REQUEST_BODY=$(cat <<-EOF { - "targetId": $SPLXAI_TARGET_ID, - "probeIds": $SPLXAI_PROBE_IDS, # add required Probes in the list, e.g [1,2,3] - "name": "SplxAI Test Run" + "targetId": $SPLX_TARGET_ID, + "probeIds": $SPLX_PROBE_IDS, # add required Probes in the list, e.g [1,2,3] + "name": "SPLX Test Run" } EOF ) RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ + --url $SPLX_API_URL/api/workspaces/$SPLX_WORKSPACE_ID/test-run/trigger \ --header 'Content-Type: application/json' \ - --header "X-Api-Key: $SPLXAI_API_KEY" \ + --header "X-Api-Key: $SPLX_API_KEY" \ --data "$REQUEST_BODY") TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') @@ -24,6 +24,6 @@ exit 1 fi - echo "###### Triggered SplxAI Test Run #######" + echo "###### Triggered SPLX Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> $SPLXAI_PLATFORM_URL/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + echo "=> $SPLX_PLATFORM_URL/w/$SPLX_WORKSPACE_ID/target/$SPLX_TARGET_ID/test-runs/$TEST_RUN_ID" From 32149ef405ccd1419ba3c6851d3a6b9ef5fdc8e2 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 11:21:56 +0100 Subject: [PATCH 11/12] fix: splxai into splx --- ci-cd/Bitbucket/bitbucket-pipelines.yml | 32 ++++++++--------- ci-cd/GitHub/splxai-test.yml | 48 ++++++++++++------------- ci-cd/GitLab/gitlab-ci.yml | 44 +++++++++++------------ 3 files changed, 62 insertions(+), 62 deletions(-) diff --git a/ci-cd/Bitbucket/bitbucket-pipelines.yml b/ci-cd/Bitbucket/bitbucket-pipelines.yml index 909587c..291dd19 100644 --- a/ci-cd/Bitbucket/bitbucket-pipelines.yml +++ b/ci-cd/Bitbucket/bitbucket-pipelines.yml @@ -1,18 +1,18 @@ -# ******** SplxAI Probe Template for Bitbucket CI ******** +# ******** SPLX Probe Template for Bitbucket CI ******** # # ******** Description ******** -# SplxAI Probe will test your GenAI application to detect vulnerabilities and provide remediation. +# SPLX Probe will test your GenAI application to detect vulnerabilities and provide remediation. # # It is recomended to create a new API key with a descriptive name # The user needs to set up enviroment variables in Bitbucket CI, see here for more inforamtion: https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/ # # The following values should be added as environment variables with the key being secret -# SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings -# SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) -# SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details -# SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings -# SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) -# SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) +# SPLX_TARGET_ID: the Target ID of the pre defined Target, from SPLX Probe, Target Settings +# SPLX_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SPLX Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +# SPLX_PROBE_IDS: list of Probe IDs to run, from SPLX Probe, Probe Settings, Details +# SPLX_API_KEY: the API key generated from SPLX Probe, Account Settings +# SPLX_PLATFORM_URL: the SPLX url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) +# SPLX_API_URL: the SPLX url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) # # Note: This example used a self-hosted Gitlab-runner running with Shell executor as described here: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-the-shell-executor # @@ -25,26 +25,26 @@ image: atlassian/default-image:3 pipelines: default: - step: - name: "SplxAI Test" + name: "SPLX Test" script: - | apt-get -qq update apt-get install -y jq - echo "###### Start SplxAI Test Run #######" + echo "###### Start SPLX Test Run #######" REQUEST_BODY=$(cat <<-EOF { - "targetId": $SPLXAI_TARGET_ID, - "probeIds": $SPLXAI_PROBE_IDS, + "targetId": $SPLX_TARGET_ID, + "probeIds": $SPLX_PROBE_IDS, "name": "Bitbucket CI/CD Test Run" } EOF ) RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ + --url $SPLX_API_URL/api/workspaces/$SPLX_WORKSPACE_ID/test-run/trigger \ --header 'Content-Type: application/json' \ - --header "X-Api-Key: $SPLXAI_API_KEY" \ + --header "X-Api-Key: $SPLX_API_KEY" \ --data "$REQUEST_BODY") TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') @@ -54,6 +54,6 @@ pipelines: exit 1 fi - echo "###### Triggered SplxAI Test Run #######" + echo "###### Triggered SPLX Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> $SPLXAI_PLATFORM_URL/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + echo "=> $SPLX_PLATFORM_URL/w/$SPLX_WORKSPACE_ID/target/$SPLX_TARGET_ID/test-runs/$TEST_RUN_ID" diff --git a/ci-cd/GitHub/splxai-test.yml b/ci-cd/GitHub/splxai-test.yml index cf4ff5e..b4c2260 100644 --- a/ci-cd/GitHub/splxai-test.yml +++ b/ci-cd/GitHub/splxai-test.yml @@ -1,23 +1,23 @@ -# ******** SplxAI Probe Template for Github CI ******** +# ******** SPLX Probe Template for Github CI ******** # # ******** Description ******** -# SplxAI Probe will test your GenAI application to detect vulnerabilities and provide remediation. +# SPLX Probe will test your GenAI application to detect vulnerabilities and provide remediation. # # It is recomended to create a new API key with a descriptive name # # The following values should be added as environment variables with the key being secret -# SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings -# SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) -# SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details -# SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings -# SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) -# SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) +# SPLX_TARGET_ID: the Target ID of the pre defined Target, from SPLX Probe, Target Settings +# SPLX_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SPLX Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +# SPLX_PROBE_IDS: list of Probe IDs to run, from SPLX Probe, Probe Settings, Details +# SPLX_API_KEY: the API key generated from SPLX Probe, Account Settings +# SPLX_PLATFORM_URL: the SPLX url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) +# SPLX_API_URL: the SPLX url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) # # For more configuration options, please check the technical documentation portal: # 📚 https://probe.splx.ai/probe-documentation # -name: SplxAI Test +name: SPLX Test # Controls when the workflow will run on: @@ -31,12 +31,12 @@ on: workflow_dispatch: env: - SPLXAI_TARGET_ID: 000 - SPLXAI_WORKSPACE_ID: 000 - SPLXAI_PROBE_IDS: "[1]" - # SPLXAI_API_KEY: .... # Defined as a secret variable: https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions - SPLXAI_PLATFORM_URL: "https://probe.splx.ai" - SPLXAI_API_URL: "https://api.probe.splx.ai" + SPLX_TARGET_ID: 000 + SPLX_WORKSPACE_ID: 000 + SPLX_PROBE_IDS: "[1]" + # SPLX_API_KEY: .... # Defined as a secret variable: https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions + SPLX_PLATFORM_URL: "https://probe.splx.ai" + SPLX_API_URL: "https://api.probe.splx.ai" # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -51,18 +51,18 @@ jobs: - uses: actions/checkout@v4 # Runs a set of commands using the runners shell - - name: SplxAI Test + - name: SPLX Test env: - SPLXAI_API_KEY: ${{ secrets.SPLXAI_API_KEY }} + SPLX_API_KEY: ${{ secrets.SPLX_API_KEY }} run: | sudo apt-get -qq update sudo apt-get install -y jq - echo "###### Start SplxAI Test Run #######" + echo "###### Start SPLX Test Run #######" REQUEST_BODY=$(cat <<-EOF { - "targetId": $SPLXAI_TARGET_ID, - "probeIds": $SPLXAI_PROBE_IDS, + "targetId": $SPLX_TARGET_ID, + "probeIds": $SPLX_PROBE_IDS, "name": "GitHub CI/CD Test Run" } EOF @@ -71,9 +71,9 @@ jobs: echo $REQUEST_BODY RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ + --url $SPLX_API_URL/api/workspaces/$SPLX_WORKSPACE_ID/test-run/trigger \ --header 'Content-Type: application/json' \ - --header "X-Api-Key: $SPLXAI_API_KEY" \ + --header "X-Api-Key: $SPLX_API_KEY" \ --data "$REQUEST_BODY") echo $RESPONSE @@ -85,6 +85,6 @@ jobs: exit 1 fi - echo "###### Triggered SplxAI Test Run #######" + echo "###### Triggered SPLX Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> $SPLXAI_PLATFORM_URL/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + echo "=> $SPLX_PLATFORM_URL/w/$SPLX_WORKSPACE_ID/target/$SPLX_TARGET_ID/test-runs/$TEST_RUN_ID" diff --git a/ci-cd/GitLab/gitlab-ci.yml b/ci-cd/GitLab/gitlab-ci.yml index cff82a9..4702c70 100644 --- a/ci-cd/GitLab/gitlab-ci.yml +++ b/ci-cd/GitLab/gitlab-ci.yml @@ -1,17 +1,17 @@ -# ******** SplxAI Probe Template for Gitlab CI ******** +# ******** SPLX Probe Template for Gitlab CI ******** # # ******** Description ******** -# SplxAI Probe will test your GenAI application to detect vulnerabilities and provide remediation. +# SPLX Probe will test your GenAI application to detect vulnerabilities and provide remediation. # # It is recomended to create a new API key with a descriptive name # # The following values should be added as environment variables with the key being secret -# SPLXAI_TARGET_ID: the Target ID of the pre defined Target, from SplxAI Probe, Target Settings -# SPLXAI_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SplxAI Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) -# SPLXAI_PROBE_IDS: list of Probe IDs to run, from SplxAI Probe, Probe Settings, Details -# SPLXAI_API_KEY: the API key generated from SplxAI Probe, Account Settings -# SPLXAI_PLATFORM_URL: the SplxAI url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) -# SPLXAI_API_URL: the SplxAI url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) +# SPLX_TARGET_ID: the Target ID of the pre defined Target, from SPLX Probe, Target Settings +# SPLX_WORKSPACE_ID: the Workspace ID of the pre defined Target, from SPLX Probe (can be found in the URL when viewing the Target - e.g 163 in https://probe.splx.ai/w/163/target/000) +# SPLX_PROBE_IDS: list of Probe IDs to run, from SPLX Probe, Probe Settings, Details +# SPLX_API_KEY: the API key generated from SPLX Probe, Account Settings +# SPLX_PLATFORM_URL: the SPLX url that you login to (e.g https://probe.splx.ai/ or https://us.probe.splx.ai/) +# SPLX_API_URL: the SPLX url that you login to (e.g https://api.probe.splx.ai/ or https://api.us.probe.splx.ai/) # # Note: This example used a self-hosted Gitlab-runner running with Shell executor as described here: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-the-shell-executor # @@ -22,35 +22,35 @@ stages: - test -splxai-test: +SPLX-test: stage: test variables: - SPLXAI_TARGET_ID: 000 - SPLXAI_WORKSPACE_ID: 000 - SPLXAI_PROBE_IDS: "[1]" - # SPLXAI_API_KEY: .... # Defined as a secret variable: https://docs.gitlab.com/ee/ci/variables/ - SPLXAI_PLATFORM_URL: "https://probe.splx.ai" - SPLXAI_API_URL: "https://api.probe.splx.ai" + SPLX_TARGET_ID: 000 + SPLX_WORKSPACE_ID: 000 + SPLX_PROBE_IDS: "[1]" + # SPLX_API_KEY: .... # Defined as a secret variable: https://docs.gitlab.com/ee/ci/variables/ + SPLX_PLATFORM_URL: "https://probe.splx.ai" + SPLX_API_URL: "https://api.probe.splx.ai" script: | apt-get -qq update apt-get install -y jq - echo "###### Start SplxAI Test Run #######" + echo "###### Start SPLX Test Run #######" REQUEST_BODY=$(cat <<-EOF { - "targetId": $SPLXAI_TARGET_ID, - "probeIds": $SPLXAI_PROBE_IDS, + "targetId": $SPLX_TARGET_ID, + "probeIds": $SPLX_PROBE_IDS, "name": "GitLab CI/CD Test Run" } EOF ) RESPONSE=$(curl -s --request POST \ - --url $SPLXAI_API_URL/api/workspaces/$SPLXAI_WORKSPACE_ID/test-run/trigger \ + --url $SPLX_API_URL/api/workspaces/$SPLX_WORKSPACE_ID/test-run/trigger \ --header 'Content-Type: application/json' \ - --header "X-Api-Key: $SPLXAI_API_KEY" \ + --header "X-Api-Key: $SPLX_API_KEY" \ --data "$REQUEST_BODY") TEST_RUN_ID=$(echo $RESPONSE | jq -r '.testRunId') @@ -60,6 +60,6 @@ splxai-test: exit 1 fi - echo "###### Triggered SplxAI Test Run #######" + echo "###### Triggered SPLX Test Run #######" echo "=> Click on the link below to see the Test Run results" - echo "=> $SPLXAI_PLATFORM_URL/w/$SPLXAI_WORKSPACE_ID/target/$SPLXAI_TARGET_ID/test-runs/$TEST_RUN_ID" + echo "=> $SPLX_PLATFORM_URL/w/$SPLX_WORKSPACE_ID/target/$SPLX_TARGET_ID/test-runs/$TEST_RUN_ID" From ac476dfd13cd9e67b7502c32cfd04e256db62c15 Mon Sep 17 00:00:00 2001 From: Mateja Vuradin Date: Thu, 8 Jan 2026 14:14:39 +0100 Subject: [PATCH 12/12] fix: edited readme --- ci-cd/README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ci-cd/README.md b/ci-cd/README.md index e8e7566..fa023c2 100644 --- a/ci-cd/README.md +++ b/ci-cd/README.md @@ -1,15 +1,17 @@ ![Logo](https://framerusercontent.com/images/YGRPW6ijSan06UXm0WkkLWAg5GQ.svg) # CI/CD Examples + This repository contains CI/CD specific examples of how to run a Test with Splx Probe. ## Examples by CI/CD Tool - - [AzureDevOps](./AzureDevOps) - - [Bamboo](./Bamboo) - - [Bitbucket](./Bitbucket) - - [GitHub](./GitHub) - - [GitLab](./GitLab) - - [Jenkins](./Jenkins) + +- [AzureDevOps](./AzureDevOps) +- [Bitbucket](./Bitbucket) +- [GitHub](./GitHub) +- [GitLab](./GitLab) +- [Jenkins](./Jenkins) ## Genric Examples - - [Bash](./generic) + +- [Bash](./generic)