Skip to content

Commit dbfbc51

Browse files
committed
chore: update SonarCloud/SonarCube analysis
1 parent 468ae92 commit dbfbc51

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/sonar.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
- release**
88
pull_request:
99
types: [opened, synchronize, reopened]
10-
name: SonarCloud
10+
name: SonarCloud analysis
1111
jobs:
12-
sonarcloud:
13-
name: SonarCloud
12+
sonarqube:
13+
name: SonarQube
1414
runs-on: ubuntu-latest
1515
if: ${{ github.repository_owner == 'Sofie-Automation' && !github.event.pull_request.head.repo.fork }}
1616
timeout-minutes: 15
@@ -38,14 +38,13 @@ jobs:
3838
- name: Prepare Environment
3939
run: |
4040
corepack enable
41-
41+
4242
yarn
4343
yarn build:packages
4444
env:
4545
CI: true
4646

47-
- name: SonarCloud Scan
48-
uses: sonarsource/sonarcloud-github-action@main
47+
- name: SonarQube Scan
48+
uses: SonarSource/sonarqube-scan-action@v6
4949
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5150
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
sonar.projectKey=nrkno_sofie-core
2-
sonar.organization=nrkno
1+
sonar.projectKey=Sofie-Automation_sofie-core
2+
sonar.organization=sofie-automation
33

44
# This is the name and version displayed in the SonarCloud UI.
55
#sonar.projectName=sofie-core
@@ -37,4 +37,4 @@ sonar.issue.ignore.multicriteria.switchstatement3cases.resourceKey=**/*
3737

3838
# Prefer using an optional chain expression instead, as it's more concise and easier to read
3939
sonar.issue.ignore.multicriteria.preferoptionalchain.ruleKey=typescript:S6582
40-
sonar.issue.ignore.multicriteria.preferoptionalchain.resourceKey=**/*
40+
sonar.issue.ignore.multicriteria.preferoptionalchain.resourceKey=**/*

0 commit comments

Comments
 (0)