Skip to content

Commit

Permalink
Merge pull request #289 from 0xPolygonHermez/security-update
Browse files Browse the repository at this point in the history
Security update
  • Loading branch information
mt-polygon-technology authored Mar 13, 2024
2 parents 77e0e2b + 5ff91bc commit 2abda1e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
name: SonarQube analysis

name: Security Build
on:
push:
branches:
- main
- develop

- staging
workflow_dispatch: {}
pull_request:
types: [opened, synchronize, reopened]

jobs:
sonarqube:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting.
fetch-depth: 0

# Triggering SonarQube analysis as results of it are required by Quality Gate check.
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sonar.projectKey=zkevm-bridge-ui
sonar.projectKey=0xPolygonHermez_zkevm-bridge-ui
sonar.organization=0xPolygonHermez

0 comments on commit 2abda1e

Please sign in to comment.