Skip to content

Commit 4b76af1

Browse files
Rob TjalmaRob Tjalma
authored andcommitted
Added SonarCloud Github Action
Signed-off-by: Rob Tjalma <[email protected]>
1 parent 16e38e0 commit 4b76af1

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SPDX-FileCopyrightText: 2021 Alliander N.V.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: SonarCloud Analysis
6+
7+
on: push
8+
9+
jobs:
10+
sonarcloud:
11+
name: SonarCloud
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
17+
- name: SonarCloud Scan
18+
uses: SonarSource/sonarcloud-github-action@master
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
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+
# Properties for SonarCloud to recognize the project
2+
sonar.projectKey=com-pas_compas-sct
3+
sonar.organization=com-pas

0 commit comments

Comments
 (0)