Skip to content

Commit

Permalink
ci: add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefialho committed Sep 10, 2024
1 parent b63c3f4 commit 0e39a77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/sonarcloud-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ on:
branches:
- main

permissions: write-all

jobs:
build-and-test:
concurrency: ghpages-${{ github.ref }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 0e39a77

Please sign in to comment.