diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1b0907950..458075a28 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -20,9 +20,12 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 + # Some tests need screen access - name: Install xvfb run: sudo apt-get install xvfb - name: Build with Maven run: xvfb-run mvn clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar env: + # These two env variables are needed for sonar analysis + GITHUB_TOKEN: ${{ secrets.REPOSITORY_ACCESS_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}