Skip to content

Commit

Permalink
Update sonarqube.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mt-polygon-technology authored Mar 12, 2024
1 parent 0a4ca70 commit 16ca3e1
Showing 1 changed file with 17 additions and 15 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 }}

0 comments on commit 16ca3e1

Please sign in to comment.