Fix sonar configuration
@@ -21,7 +21,7 @@ jobs:
run: ./mvnw -V --no-transfer-progress clean verify javadoc:javadoc
sonar:
- name: Sonar
+ name: Sonar code analysis
runs-on: ubuntu-latest
if: github.repository == 'joel-costigliola/assertj-core' && github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
@@ -35,6 +35,8 @@ jobs:
./mvnw -V --no-transfer-progress clean verify javadoc:javadoc
org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar
-Dsonar.host.url=https://sonarcloud.io
- -Dsonar.login=${{ secrets.SONAR_TOKEN }}
-Dsonar.organization=assertj
-Dsonar.projectKey=joel-costigliola_assertj-core
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
