Skip to content

Commit 2977a07

Browse files
committed
Enables SonarQube checks for Java
TODO https://sonarcloud.io/account/security/
1 parent 2604406 commit 2977a07

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/sonarqube.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: SonarQube
2+
3+
on: ['push', 'pull_request']
4+
5+
jobs:
6+
sonarcloud:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
# Disabling shallow clone is recommended for improving relevancy of reporting
12+
fetch-depth: 0
13+
- name: SonarCloud Scan
14+
uses: sonarsource/sonarcloud-github-action@v1.2
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sonar.organization=andremiras
2+
sonar.projectKey=AndreMiras_python
3+
4+
# relative paths to source directories. More details and properties are described
5+
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
6+
sonar.sources=pythonforandroid/bootstraps/

0 commit comments

Comments
 (0)