Skip to content

Commit 2f42787

Browse files
committed
chore(ci): Added code scanning
1 parent 728c0ca commit 2f42787

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/code-scan.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Code Scan
2+
3+
on:
4+
pull_request:
5+
branches: [ master, development ]
6+
schedule:
7+
- cron: '0 12 * * 1' # runs at 12:00 UTC on Mondays
8+
workflow_dispatch:
9+
10+
jobs:
11+
scan:
12+
uses: hms-dbmi/actions/.github/workflows/code-scan.yml@main
13+
secrets:
14+
SONAR_HOST_URL: ${{ secrets.BLHMSDBMI_SONAR_HOST_URL }}
15+
SONAR_TOKEN: ${{ secrets.BLHMSDBMI_SONAR_TOKEN }}

sonar-project.properties

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
sonar.projectKey=hms-dbmi_fhirquestionnaire_6a0c9d95-9eed-4bab-8e51-12ccfdbe31c4
2+
3+
# relative paths to source directories. More details and properties are described
4+
# at https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/
5+
sonar.sources=app/
6+
7+
# Set python version
8+
sonar.python.version=3.11

0 commit comments

Comments
 (0)