Skip to content

Commit 74f90f0

Browse files
authored
Merge pull request Sofie-Automation#1557 from Sofie-Automation/chore/sonar-cube
chore: update SonarCloud/SonarCube analysis
2 parents 468ae92 + ca195d3 commit 74f90f0

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/sonar.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
- release**
88
pull_request:
99
types: [opened, synchronize, reopened]
10-
name: SonarCloud
10+
workflow_dispatch:
11+
12+
name: SonarCloud analysis
1113
jobs:
12-
sonarcloud:
13-
name: SonarCloud
14+
sonarqube:
15+
name: SonarQube
1416
runs-on: ubuntu-latest
1517
if: ${{ github.repository_owner == 'Sofie-Automation' && !github.event.pull_request.head.repo.fork }}
1618
timeout-minutes: 15
@@ -38,14 +40,13 @@ jobs:
3840
- name: Prepare Environment
3941
run: |
4042
corepack enable
41-
43+
44+
yarn config set cacheFolder /home/runner/lint-core-cache
4245
yarn
4346
yarn build:packages
4447
env:
4548
CI: true
46-
47-
- name: SonarCloud Scan
48-
uses: sonarsource/sonarcloud-github-action@main
49+
- name: SonarQube Scan
50+
uses: SonarSource/sonarqube-scan-action@v6
4951
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5152
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)