Update actions/checkout action to v5 #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Sonarcloud Analysis" | |
| on: ["pull_request"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| sonarcloud-analysis: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| # Disabling shallow clone to improve relevancy of SonarCloud reporting | |
| fetch-depth: 0 | |
| - name: SonarCloud integration | |
| uses: sonarsource/sonarcloud-github-action@master | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |