|
21 | 21 | # |
22 | 22 | # * b. Generate a new token and add it to your Github repository's secrets using the name SONAR_TOKEN |
23 | 23 | # (On SonarCloud, click on your avatar on top-right > My account > Security |
24 | | -# or go directly to https://sonarcloud.io/account/security/) |
| 24 | +# or go directly to |
25 | 25 |
|
26 | | -# Feel free to take a look at our documentation (https://docs.sonarcloud.io/getting-started/github/) |
27 | | -# or reach out to our community forum if you need some help (https://community.sonarsource.com/c/help/sc/9) |
| 26 | +# Feel free to take a look at our documentation ( |
| 27 | +# or reach out to our community forum if you need some help ( |
28 | 28 |
|
29 | 29 | name: SonarCloud analysis |
30 | 30 |
|
31 | 31 | on: |
32 | 32 | push: |
33 | | - branches: [ "main", "develop" ] |
| 33 | + branches: [ '*' ] # 모든 브랜치에서 푸시 이벤트 발생 시 분석 |
34 | 34 | pull_request: |
35 | | - branches: [ "main", "develop" ] |
| 35 | + branches: [ '*' ] # 모든 브랜치에 대한 PR 발생 시 분석 |
36 | 36 | workflow_dispatch: |
37 | 37 |
|
38 | 38 | permissions: |
|
46 | 46 | - name: Analyze with SonarCloud |
47 | 47 |
|
48 | 48 | # You can pin the exact commit or the version. |
49 | | - # uses: SonarSource/[email protected] |
50 | 49 | uses: SonarSource/sonarcloud-github-action@4006f663ecaf1f8093e8e4abb9227f6041f52216 |
51 | 50 | env: |
52 | 51 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret) |
|
60 | 59 | # Comma-separated paths to directories containing main source files. |
61 | 60 | #-Dsonar.sources= # optional, default is project base directory |
62 | 61 | # Comma-separated paths to directories containing test source files. |
63 | | - #-Dsonar.tests= # optional. For more info about Code Coverage, please refer to https://docs.sonarcloud.io/enriching/test-coverage/overview/ |
| 62 | + #-Dsonar.tests= # optional. For more info about Code Coverage, please refer to |
64 | 63 | # 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. |
65 | 64 | #-Dsonar.verbose= # optional, default is false |
66 | 65 | # When you need the analysis to take place in a directory other than the one from which it was launched, default is . |
|
0 commit comments