From c4dafe9144bc831a5a231bc0b1b4bccf3563ef4d Mon Sep 17 00:00:00 2001 From: antoniotarricone Date: Tue, 28 May 2024 10:54:29 +0200 Subject: [PATCH] Added the setting of SONAR_TOKEN. --- .github/workflows/build_n_deploy.yml | 2 ++ .github/workflows/release.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build_n_deploy.yml b/.github/workflows/build_n_deploy.yml index 586c847..1a670ea 100644 --- a/.github/workflows/build_n_deploy.yml +++ b/.github/workflows/build_n_deploy.yml @@ -86,4 +86,6 @@ jobs: # Build and deploy. # - name: Build and deploy + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: ${{ runner.temp }}/maven/bin/mvn --batch-mode verify deploy -Pvalidate -s ${{ runner.temp }}/settings.xml --no-transfer-progress diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f17a5a5..35aee3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -141,4 +141,6 @@ jobs: # - name: Build and deploy if: steps.semantic.outputs.new_release_published == 'true' + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: ${{ runner.temp }}/maven/bin/mvn --batch-mode verify deploy -Pvalidate -s ${{ runner.temp }}/settings.xml --no-transfer-progress