File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,17 @@ jobs:
30
30
pip install bandit
31
31
- name : Run Linters
32
32
run : make lint
33
+
33
34
- name : Send report to CodeClimate
34
35
run : |
35
36
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
36
37
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
37
38
chmod +x ./cc-test-reporter
38
39
./cc-test-reporter format-coverage -t coverage.py coverage.xml
39
40
./cc-test-reporter upload-coverage -r "${{ secrets.CC_TEST_REPORTER_ID }}"
41
+
42
+ - name : SonarCloud scanner
43
+ uses : sonarsource/sonarcloud-github-action@master
44
+ env :
45
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ mv $DUMMY_MODULE $MODULE
27
27
28
28
sed -i s/$DUMMY_MODULE /$MODULE /g pytest.ini
29
29
sed -i s/$DUMMY_MODULE /$MODULE /g setup.cfg
30
+ sed -i s/$DUMMY_MODULE /$MODULE /g sonar-project.properties
30
31
sed -i s~$DUMMY_REGISTRY ~$REGISTRY ~g Makefile
31
32
sed -i s/example/$MODULE /g Makefile
32
33
sed -i s/$DUMMY_MODULE /$MODULE /g Makefile
Original file line number Diff line number Diff line change
1
+ sonar.organization =martinheinz-github
2
+ sonar.projectKey =MartinHeinz_python-project-blueprint
3
+
4
+ sonar.sources =blueprint
You can’t perform that action at this time.
0 commit comments