@@ -43,7 +43,6 @@ jobs: | |||
dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner | |||
- name: Build and analyze | |||
env: | |||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||
shell: powershell | |||
run: | | |||
.\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"my-project" /d:sonar.token="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}" | |||
@@ -223,7 +222,6 @@ jobs: | |||
restore-keys: \${{ runner.os }}-gradle | |||
- name: Build and analyze | |||
env: | |||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||
SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | |||
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | |||
run: ./gradlew build sonar --info" | |||
@@ -291,7 +289,6 @@ jobs: | |||
restore-keys: \${{ runner.os }}-m2 | |||
- name: Build and analyze | |||
env: | |||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||
SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | |||
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | |||
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'" |
@@ -56,7 +56,6 @@ function dotnetYamlSteps(projectKey: string) { | |||
dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner | |||
- name: Build and analyze | |||
env: | |||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||
shell: powershell | |||
run: | | |||
.\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"${projectKey}" /d:sonar.token="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}" |
@@ -49,7 +49,6 @@ const GRADLE_YAML_STEPS = ` | |||
restore-keys: \${{ runner.os }}-gradle | |||
- name: Build and analyze | |||
env: | |||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||
SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | |||
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | |||
run: ./gradlew build sonar --info`; |
@@ -49,7 +49,6 @@ function mavenYamlSteps(projectKey: string, projectName: string) { | |||
restore-keys: \${{ runner.os }}-m2 | |||
- name: Build and analyze | |||
env: | |||
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |||
SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} | |||
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} | |||
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=${projectKey} -Dsonar.projectName='${projectName}'`; |