2024-08-18 20:14:17 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- dev
|
|
|
|
- "!renovate/**"
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
|
|
|
|
name: SonarQube Scan
|
|
|
|
jobs:
|
|
|
|
sonarqube:
|
|
|
|
name: SonarQube Trigger
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checking out
|
2024-10-26 02:01:49 +02:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2024-08-18 20:14:17 +02:00
|
|
|
with:
|
|
|
|
# Disabling shallow clone is recommended for improving relevancy of reporting
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: SonarQube Scan
|
2024-12-21 03:02:51 +01:00
|
|
|
uses: SonarSource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 # v4.2.1
|
2024-08-18 20:14:17 +02:00
|
|
|
env:
|
|
|
|
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
|
|
|
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|
|
|
|
|
|
|
|
# Check the Quality Gate status.
|
|
|
|
- name: SonarQube Quality Gate check
|
|
|
|
uses: sonarsource/sonarqube-quality-gate-action@master
|
|
|
|
timeout-minutes: 2
|
|
|
|
env:
|
|
|
|
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
|
|
|
|
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|