From 0e39a77edd02a1dd5de83340577417b8c877426c Mon Sep 17 00:00:00 2001 From: felipefialho Date: Tue, 10 Sep 2024 10:15:29 -0300 Subject: [PATCH] ci: add permissions --- .github/workflows/sonarcloud-scan.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarcloud-scan.yml b/.github/workflows/sonarcloud-scan.yml index be4676844..a46779748 100644 --- a/.github/workflows/sonarcloud-scan.yml +++ b/.github/workflows/sonarcloud-scan.yml @@ -18,6 +18,8 @@ on: branches: - main +permissions: write-all + jobs: build-and-test: concurrency: ghpages-${{ github.ref }} @@ -91,7 +93,7 @@ jobs: - name: SonarCloud Scan - Core 🚨 if: env.COVERAGE_CORE == 'true' - uses: sonarsource/sonarcloud-github-action@v2.0.2 + uses: sonarsource/sonarcloud-github-action@v3.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -100,7 +102,7 @@ jobs: - name: SonarCloud Scan - Tokens 🚨 if: env.COVERAGE_TOKENS == 'true' - uses: sonarsource/sonarcloud-github-action@v2.0.2 + uses: sonarsource/sonarcloud-github-action@v3.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}