Skip to content

Commit

Permalink
chore(ci): Added code scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
b32147 committed Nov 5, 2024
1 parent 728c0ca commit 2f42787
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/code-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Code Scan

on:
pull_request:
branches: [ master, development ]
schedule:
- cron: '0 12 * * 1' # runs at 12:00 UTC on Mondays
workflow_dispatch:

jobs:
scan:
uses: hms-dbmi/actions/.github/workflows/code-scan.yml@main
secrets:
SONAR_HOST_URL: ${{ secrets.BLHMSDBMI_SONAR_HOST_URL }}
SONAR_TOKEN: ${{ secrets.BLHMSDBMI_SONAR_TOKEN }}
8 changes: 8 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sonar.projectKey=hms-dbmi_fhirquestionnaire_6a0c9d95-9eed-4bab-8e51-12ccfdbe31c4

# relative paths to source directories. More details and properties are described
# at https://docs.sonarqube.org/latest/project-administration/narrowing-the-focus/
sonar.sources=app/

# Set python version
sonar.python.version=3.11

0 comments on commit 2f42787

Please sign in to comment.