Skip to content

[CICD-844] Add SonarQube config and workflow #2

[CICD-844] Add SonarQube config and workflow

[CICD-844] Add SonarQube config and workflow #2

Workflow file for this run

on:
# Trigger analysis for pushes and pull requests
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
name: SonarQube
jobs:
domino_quality_gate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Fetch full history for better SCM information
fetch-depth: 0
- name: Run SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- name: Quality Gate Check
uses: sonarsource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}