From af47f0701149331e3b27497070b8fedcecbb0967 Mon Sep 17 00:00:00 2001 From: baztian Date: Wed, 17 Jun 2020 21:32:42 +0200 Subject: [PATCH] Add configuration for sonarcloud.io according to https://github.com/SonarSource/sonarcloud-github-action --- .github/workflows/python-package.yml | 5 +++++ sonar-project.properties | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 sonar-project.properties diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a843f47..8125e5a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -44,3 +44,8 @@ jobs: - name: Test with tox for non Jython only if: ${{ ! matrix.jython }} run: tox + - name: SonarCloud Scan + uses: sonarsource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..99c81c0 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.organization=baztian +sonar.projectKey=baztian_jaydebeapi + +# relative paths to source directories. More details and properties are described +# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/ +sonar.sources=.