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 0e11be1 commit d18a95b
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_dbmi-fileservice_e78292f8-f5d1-4b7f-8de9-f04d6c887c86

# 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 d18a95b

Please sign in to comment.