diff --git a/.github/workflows/compile-sketch.yml b/.github/workflows/compile-sketch.yml index a38011a2..a9c636b3 100644 --- a/.github/workflows/compile-sketch.yml +++ b/.github/workflows/compile-sketch.yml @@ -67,9 +67,6 @@ jobs: name: Sonar-Scanner runs-on: ubuntu-latest needs: [compile] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} timeout-minutes: 30 strategy: fail-fast: false @@ -90,6 +87,9 @@ jobs: .pio/build/${{ matrix.environment.command }} key: ${{ env.BUILD_CACHE }}-${{ matrix.environment.command }} - name: Run sonar-scanner + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | sonar-scanner --define sonar.cfamily.build-wrapper-output=".pio/build/${{ matrix.environment.command }}"