File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on :
2+ # Trigger analysis when pushing in master or pull requests, and when creating
3+ # a pull request.
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ types : [opened, synchronize, reopened]
9+ name : SonarCloud
10+ jobs :
11+ sonarcloud :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ with :
16+ # Disabling shallow clone is recommended for improving relevancy of reporting
17+ fetch-depth : 0
18+ - name : SonarCloud Scan
19+ uses : sonarsource/sonarcloud-github-action@master
20+ with :
21+ args : >
22+ -Dsonar.organization=managedcloudapplications
23+ -Dsonar.projectKey=iac-app-junaliikennointi-ravi
24+ -Dsonar.sources=.
25+ -Dsonar.host.url=https://sonarcloud.io
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments