Skip to content

Commit

Permalink
Sonar - try checkout repo first
Browse files Browse the repository at this point in the history
  • Loading branch information
lwih committed Jan 3, 2024
1 parent d840c58 commit fb19118
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ opened, synchronize, reopened ]
workflow_dispatch:

permissions:
Expand All @@ -43,8 +44,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Analyze with SonarCloud
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0

- name: Analyze with SonarCloud
# You can pin the exact commit or the version.
# uses: SonarSource/sonarcloud-github-action@de2e56b42aa84d0b1c5b622644ac17e505c9a049
uses: SonarSource/sonarcloud-github-action@master
Expand All @@ -58,12 +63,12 @@ jobs:
# mandatory
-Dsonar.projectKey=MTES-MCT_rapportnav2
-Dsonar.organization=mtes-mct
-Dsonar.scm.disabled=true
# -Dsonar.scm.disabled=true
# Comma-separated paths to directories containing main source files.
#-Dsonar.sources= # optional, default is project base directory
# When you need the analysis to take place in a directory other than the one from which it was launched
#-Dsonar.projectBaseDir= # optional, default is .
# Comma-separated paths to directories containing test source files.
#-Dsonar.tests= # optional. For more info about Code Coverage, please refer to https://docs.sonarcloud.io/enriching/test-coverage/overview/
# Adds more detail to both client and server-side analysis logs, activating DEBUG mode for the scanner, and adding client-side environment variables and system properties to the server-side log of analysis report processing.
#-Dsonar.verbose= # optional, default is false
# Adds more detail to both client and server-side analysis logs, activating DEBUG mode for the scanner, and adding client-side environment variables and system properties to the server-side log of analysis report processing.
-Dsonar.verbose=true # optional, default is false

0 comments on commit fb19118

Please sign in to comment.