From 3f06da871e43863c7a74236a8bfa18777f05447b Mon Sep 17 00:00:00 2001 From: Farshad DASHTI Date: Fri, 4 Oct 2024 13:22:42 +0100 Subject: [PATCH] Updated variables --- .github/workflows/build-test-asyncprocessing.yml | 4 +++- .github/workflows/build-test-caching.yml | 4 +++- .github/workflows/build-test-contracts.yml | 4 +++- .github/workflows/build-test-http.yml | 4 +++- .github/workflows/build-test-template.yml | 3 +++ .github/workflows/build-test-testing.yml | 4 +++- .github/workflows/build-test-utilities.yml | 4 +++- 7 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-test-asyncprocessing.yml b/.github/workflows/build-test-asyncprocessing.yml index 2d1254c..1889daf 100644 --- a/.github/workflows/build-test-asyncprocessing.yml +++ b/.github/workflows/build-test-asyncprocessing.yml @@ -13,4 +13,6 @@ jobs: with: project_name: DfE.CoreLibs.AsyncProcessing project_path: src/DfE.CoreLibs.AsyncProcessing - sonar_project_key: DFE-Digital_corelibs-asyncprocessing \ No newline at end of file + sonar_project_key: DFE-Digital_corelibs-asyncprocessing + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/build-test-caching.yml b/.github/workflows/build-test-caching.yml index 259167e..4ad16be 100644 --- a/.github/workflows/build-test-caching.yml +++ b/.github/workflows/build-test-caching.yml @@ -13,4 +13,6 @@ jobs: with: project_name: DfE.CoreLibs.Caching project_path: src/DfE.CoreLibs.Caching - sonar_project_key: DFE-Digital_corelibs-caching \ No newline at end of file + sonar_project_key: DFE-Digital_corelibs-caching + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/build-test-contracts.yml b/.github/workflows/build-test-contracts.yml index dae37df..2e26f2d 100644 --- a/.github/workflows/build-test-contracts.yml +++ b/.github/workflows/build-test-contracts.yml @@ -13,4 +13,6 @@ jobs: with: project_name: DfE.CoreLibs.Contracts project_path: src/DfE.CoreLibs.Contracts - sonar_project_key: DFE-Digital_corelibs-contracts \ No newline at end of file + sonar_project_key: DFE-Digital_corelibs-contracts + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/build-test-http.yml b/.github/workflows/build-test-http.yml index 0c6d7ed..c941a2f 100644 --- a/.github/workflows/build-test-http.yml +++ b/.github/workflows/build-test-http.yml @@ -13,4 +13,6 @@ jobs: with: project_name: DfE.CoreLibs.Http project_path: src/DfE.CoreLibs.Http - sonar_project_key: DFE-Digital_corelibs-http \ No newline at end of file + sonar_project_key: DFE-Digital_corelibs-http + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/build-test-template.yml b/.github/workflows/build-test-template.yml index 77824a6..efac82e 100644 --- a/.github/workflows/build-test-template.yml +++ b/.github/workflows/build-test-template.yml @@ -15,6 +15,9 @@ on: required: true type: string description: "SonarCloud project key" + secrets: + SONAR_TOKEN: + required: true env: DOTNET_VERSION: '8.0.x' EF_VERSION: '6.0.5' diff --git a/.github/workflows/build-test-testing.yml b/.github/workflows/build-test-testing.yml index b8d59ea..6589dc2 100644 --- a/.github/workflows/build-test-testing.yml +++ b/.github/workflows/build-test-testing.yml @@ -13,4 +13,6 @@ jobs: with: project_name: DfE.CoreLibs.Testing project_path: src/DfE.CoreLibs.Testing - sonar_project_key: DFE-Digital_corelibs-testing \ No newline at end of file + sonar_project_key: DFE-Digital_corelibs-testing + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/build-test-utilities.yml b/.github/workflows/build-test-utilities.yml index 3607c0e..678d48c 100644 --- a/.github/workflows/build-test-utilities.yml +++ b/.github/workflows/build-test-utilities.yml @@ -13,4 +13,6 @@ jobs: with: project_name: DfE.CoreLibs.Utilities project_path: src/DfE.CoreLibs.Utilities - sonar_project_key: DFE-Digital_corelibs-utilities \ No newline at end of file + sonar_project_key: DFE-Digital_corelibs-utilities + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file