Skip to content

Commit eeb7816

Browse files
authored
ci: add SonarQube Scan to CI workflow (#35)
1 parent 5831770 commit eeb7816

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.github/workflows/pylint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ jobs:
3838
do
3939
pylint --disable=R,C,W "$file" --fail-under=10;
4040
done
41+
- name: SonarQube Scan
42+
if: ${{ matrix.python == '3.13' && github.actor != 'dependabot[bot]' }}
43+
uses: SonarSource/[email protected]
44+
env:
45+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# apimatic-core-interfaces
22
[![PyPI][pypi-version]](https://pypi.org/project/apimatic-core-interfaces/)
3+
[![Maintainability Rating][maintainability-badge]][maintainability-url]
4+
[![Vulnerabilities][vulnerabilities-badge]][vulnerabilities-url]
35
[![Licence][license-badge]][license-url]
46

57
## Introduction
@@ -32,3 +34,7 @@ pip install apimatic-core-interfaces
3234
[pypi-version]: https://img.shields.io/pypi/v/apimatic-core-interfaces
3335
[license-badge]: https://img.shields.io/badge/licence-MIT-blue
3436
[license-url]: LICENSE
37+
[maintainability-badge]: https://sonarcloud.io/api/project_badges/measure?project=apimatic_core-interfaces-python&metric=sqale_rating
38+
[maintainability-url]: https://sonarcloud.io/summary/new_code?id=apimatic_core-interfaces-python
39+
[vulnerabilities-badge]: https://sonarcloud.io/api/project_badges/measure?project=apimatic_core-interfaces-python&metric=vulnerabilities
40+
[vulnerabilities-url]: https://sonarcloud.io/summary/new_code?id=apimatic_core-interfaces-python

sonar-project.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sonar.projectKey=apimatic_core-interfaces-python
2+
sonar.projectName=APIMatic Core Interfaces Python
3+
sonar.organization=apimatic
4+
sonar.host.url=https://sonarcloud.io
5+
sonar.sourceEncoding=UTF-8
6+
7+
sonar.sources=apimatic_core_interfaces

0 commit comments

Comments
 (0)