From 698aec7026019ef31d1adc768779153561fe9a6e Mon Sep 17 00:00:00 2001 From: Dixit Date: Tue, 2 Sep 2025 09:02:12 +0530 Subject: [PATCH] Add providerId for multiple integrations --- .github/workflows/blazemeter-evidence-example.yml | 1 + .github/workflows/cypress-evidence-example.yml | 1 + .github/workflows/jira-evidence-example.yml | 1 + .github/workflows/junit-evidence-example.yml | 1 + .github/workflows/testRail-evidence-example.yml | 1 + examples/blazemeter/README.md | 1 + examples/cypress/README.md | 1 + examples/jenkins-provenance/Jenkinsfile | 2 ++ examples/jira/README.md | 1 + examples/junit/README.md | 1 + examples/testRail/README.md | 1 + 11 files changed, 12 insertions(+) diff --git a/.github/workflows/blazemeter-evidence-example.yml b/.github/workflows/blazemeter-evidence-example.yml index 32248cb..bf038fe 100644 --- a/.github/workflows/blazemeter-evidence-example.yml +++ b/.github/workflows/blazemeter-evidence-example.yml @@ -92,4 +92,5 @@ jobs: --key-alias "${{ secrets.PRIVATE_KEY_ALIAS }}" \ --predicate "blazemeter-predicate.json" \ --predicate-type "http://blazemeter.com/performance-results/v1" \ + --provider-id "blazemeter" \ ${{ env.ATTACH_OPTIONAL_MARKDOWN_TO_EVIDENCE == 'true' && '--markdown "blazemeter-results.md"' || '' }} \ No newline at end of file diff --git a/.github/workflows/cypress-evidence-example.yml b/.github/workflows/cypress-evidence-example.yml index 5000162..a0f47aa 100644 --- a/.github/workflows/cypress-evidence-example.yml +++ b/.github/workflows/cypress-evidence-example.yml @@ -74,4 +74,5 @@ jobs: --key-alias "${{ secrets.PRIVATE_KEY_ALIAS }}" \ --predicate "reports/overall-report.json" \ --predicate-type "http://cypress.io/test-results/v1" \ + --provider-id "cypress" \ ${{ env.ATTACH_OPTIONAL_MARKDOWN_TO_EVIDENCE == 'true' && '--markdown "reports/cypress-results.md"' || '' }} \ No newline at end of file diff --git a/.github/workflows/jira-evidence-example.yml b/.github/workflows/jira-evidence-example.yml index 6ea4605..e64e3fa 100644 --- a/.github/workflows/jira-evidence-example.yml +++ b/.github/workflows/jira-evidence-example.yml @@ -85,5 +85,6 @@ jobs: --key-alias "${{ vars.EVIDENCE_KEY_ALIAS }}" \ --predicate ./examples/jira/helper/transformed_jira_data.json \ --predicate-type http://atlassian.com/jira/issues/v1 \ + --provider-id "jira" \ ${{ env.ATTACH_OPTIONAL_CUSTOM_MARKDOWN_TO_EVIDENCE == 'true' && '--markdown "examples/jira/helper/transformed_jira_data.md"' || '' }} diff --git a/.github/workflows/junit-evidence-example.yml b/.github/workflows/junit-evidence-example.yml index fde9e8c..090743f 100644 --- a/.github/workflows/junit-evidence-example.yml +++ b/.github/workflows/junit-evidence-example.yml @@ -97,6 +97,7 @@ jobs: --key-alias "${{ vars.EVIDENCE_KEY_ALIAS }}" \ --predicate ./target/consolidated-test-report.json \ --predicate-type https://jfrog.com/evidence/junit-test-results/v1 \ + --provider-id "junit" \ ${{ env.ATTACH_OPTIONAL_CUSTOM_MARKDOWN_TO_EVIDENCE == 'true' && '--markdown "junit-results.md"' || '' }} else echo "No test results found to attach as evidence" diff --git a/.github/workflows/testRail-evidence-example.yml b/.github/workflows/testRail-evidence-example.yml index 59b8802..c24662b 100644 --- a/.github/workflows/testRail-evidence-example.yml +++ b/.github/workflows/testRail-evidence-example.yml @@ -86,4 +86,5 @@ jobs: --key-alias "${{ secrets.PRIVATE_KEY_ALIAS }}" \ --predicate "reports/overall-report.json" \ --predicate-type "http://testrail.com/test-results" \ + --provider-id "testrail" \ ${{ env.ATTACH_OPTIONAL_MARKDOWN_TO_EVIDENCE == 'true' && '--markdown "reports/results.md"' || '' }} \ No newline at end of file diff --git a/examples/blazemeter/README.md b/examples/blazemeter/README.md index 31109d5..eeee447 100644 --- a/examples/blazemeter/README.md +++ b/examples/blazemeter/README.md @@ -160,6 +160,7 @@ Once the workflow completes successfully, you can navigate to your repository in --key-alias "$PRIVATE_KEY_ALIAS" \ --predicate "blazemeter-predicate.json" \ --predicate-type "http://blazemeter.com/performance-results/v1" \ + --provider-id "blazemeter" \ ${{ env.ATTACH_OPTIONAL_MARKDOWN_TO_EVIDENCE == 'true' && '--markdown "blazemeter-results.md"' || '' }} ``` diff --git a/examples/cypress/README.md b/examples/cypress/README.md index 5c0ef89..fdbfaf2 100644 --- a/examples/cypress/README.md +++ b/examples/cypress/README.md @@ -105,6 +105,7 @@ This final step uses `jf evd create` to attach the test results to the Docker im --key-alias "${{ secrets.PRIVATE_KEY_ALIAS }}" \ --predicate "reports/overall-report.json" \ --predicate-type "http://cypress.io/test-results/v1" \ + --provider-id "cypress" \ [--markdown "reports/cypress-results.md"] ``` The --markdown flag is included only if ATTACH_OPTIONAL_MARKDOWN_TO_EVIDENCE is set to true. diff --git a/examples/jenkins-provenance/Jenkinsfile b/examples/jenkins-provenance/Jenkinsfile index f1b7686..990d6cb 100644 --- a/examples/jenkins-provenance/Jenkinsfile +++ b/examples/jenkins-provenance/Jenkinsfile @@ -9,6 +9,7 @@ pipeline { MARKDOWN_FILE_NAME = 'JenkinsSLSA.md' PREDICATE_FILE_NAME = '${PROJECT_WORKING_DIR}/predicate.json' PREDICATE_TYPE = 'http://slsa.dev/provenance/v1' + PROVIDER_ID = 'jenkins' } stages { stage('Checkout') { @@ -65,6 +66,7 @@ pipeline { --key-alias ${KEY_ALIAS} \ --predicate ${PREDICATE_FILE_NAME} \ --predicate-type ${PREDICATE_TYPE} \ + --provider-id ${PROVIDER_ID} \ --markdown ${MARKDOWN_FILE_NAME}' } } diff --git a/examples/jira/README.md b/examples/jira/README.md index cda0d89..477e92c 100644 --- a/examples/jira/README.md +++ b/examples/jira/README.md @@ -230,6 +230,7 @@ jf evd create \ --key-alias "${{ vars.EVIDENCE_KEY_ALIAS }}" \ --predicate ./examples/jira/helper/transformed_jira_data.json \ --predicate-type http://atlassian.com/jira/issues/v1 \ + --provider-id "jira" \ ${{ env.ATTACH_OPTIONAL_CUSTOM_MARKDOWN_TO_EVIDENCE == 'true' && '--markdown "examples/jira/helper/transformed_jira_data.md"' || '' }} ``` diff --git a/examples/junit/README.md b/examples/junit/README.md index dca18d1..88bfaa9 100644 --- a/examples/junit/README.md +++ b/examples/junit/README.md @@ -167,6 +167,7 @@ jf evd create \ --key-alias "${{ vars.EVIDENCE_KEY_ALIAS }}" \ --predicate ./target/consolidated-test-report.json \ --predicate-type http://junit.org/test-results \ + --provider-id "junit" \ --markdown "junit-results.md" ``` diff --git a/examples/testRail/README.md b/examples/testRail/README.md index cf8bffd..f4a5d17 100644 --- a/examples/testRail/README.md +++ b/examples/testRail/README.md @@ -126,6 +126,7 @@ You can trigger the workflow manually from the GitHub Actions tab. The workflow --key-alias "${{ secrets.PRIVATE_KEY_ALIAS }}" \ --predicate "reports/overall-report.json" \ --predicate-type "http://testrail.com/test-results" \ + --provider-id "testrail" \ [--markdown "reports/results.md"] ``` The --markdown flag is included only if ATTACH_OPTIONAL_MARKDOWN_TO_EVIDENCE is set to true.