Skip to content

Commit

Permalink
chore: add sonar scan
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jul 28, 2023
1 parent 6661604 commit 9e67829
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ jobs:
files: ./coverage.xml
flags: unittests
name: GitHub

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ One time password implementations in Python. HOTP and TOTP.
[![Github Actions](https://github.com/authlib/otpauth/actions/workflows/tests.yml/badge.svg)](https://github.com/authlib/otpauth/actions/workflows/tests.yml)
[![PyPI](https://badgen.net/pypi/v/otpauth)](https://pypi.org/project/otpauth)
[![codecov](https://codecov.io/gh/authlib/otpauth/branch/master/graph/badge.svg?token=pWQIlZ9Ir4)](https://codecov.io/gh/authlib/otpauth)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=authlib_otpauth&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=authlib_otpauth)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=authlib_otpauth&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=authlib_otpauth)

</div>

Expand Down
9 changes: 9 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sonar.projectKey=authlib_otpauth
sonar.organization=authlib

sonar.sources=src
sonar.sourceEncoding=UTF-8
sonar.test.inclusions=tests/test_*.py

sonar.python.version=3.8, 3.9, 3.10, 3.11
sonar.python.coverage.reportPaths=coverage.xml

0 comments on commit 9e67829

Please sign in to comment.