Skip to content

Commit 32565ea

Browse files
authored
build: update Sonar tokens and project keys in workflow
Fixes: #12821.
1 parent 8095342 commit 32565ea

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/sdk-platform-java-sonar.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,20 @@ jobs:
7070
- name: Build and analyze for full test coverage
7171
env:
7272
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
73-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
73+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FOR_GENERATOR }}
7474
run: |
7575
mvn -B verify -Pquick-build \
7676
-DenableFullTestCoverage \
7777
-Penable-integration-tests \
7878
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
79-
-Dsonar.projectKey=googleapis_gapic-generator-java \
79+
-Dsonar.projectKey=googleapis_google-cloud-java_generator \
8080
-Dsonar.organization=googleapis \
8181
-Dsonar.host.url=https://sonarcloud.io
82+
-Dsonar.projectBaseDir=sdk-platform-java
8283
- name: Build and analyze Showcase Integration Tests Coverage
8384
env:
8485
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
85-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
86+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FOR_SHOWCASE }}
8687
run: |
8788
mvn -B clean verify -Pquick-build \
8889
-DskipUnitTests \
@@ -92,4 +93,5 @@ jobs:
9293
-Dsonar.projectKey=googleapis_gapic-generator-java_integration_tests \
9394
-Dsonar.organization=googleapis \
9495
-Dsonar.host.url=https://sonarcloud.io \
95-
-Dsonar.projectName=java_showcase_integration_tests
96+
-Dsonar.projectName=googleapis_google-cloud-java_showcase
97+
-Dsonar.projectBaseDir=sdk-platform-java

0 commit comments

Comments
 (0)