Skip to content

Commit 8f4596d

Browse files
Merge pull request #39 from 0xPolygon/security-sonarcloud
Update Sonarcloud
2 parents 5399f88 + b565429 commit 8f4596d

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: SonarQube analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
jobs:
10+
sonarcloud:
11+
name: SonarCloud
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
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 }} # Needed to get PR information, if any
21+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/sonarqube.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

sonar-project.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
sonar.projectKey=zkevm-node
1+
sonar.projectKey=0xPolygon_cdk-validium-node
2+
sonar.organization=0xpolygon

0 commit comments

Comments
 (0)