Skip to content

Commit e927e3b

Browse files
authored
Add Sonar GitHub Actions Workflow (#212)
* Create sonar-project.properties * Add SonarQube scan workflow for CI
1 parent 3ddb6a3 commit e927e3b

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/scan.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: SonarQube Scan
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- feature/**
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
jobs:
10+
sonarqube:
11+
name: SonarQube
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: SonarQube Scan
18+
uses: SonarSource/sonarqube-scan-action@v6
19+
env:
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
sonar.projectKey=jpmorganchase_fusion
2+
sonar.organization=jpmorganchase
3+
sonar.python.version=3.9, 3.10, 3.11, 3.12, 3.13

0 commit comments

Comments
 (0)