CAPAUT-438 Add sonarqube workflow

This commit is contained in:
2024-10-25 20:13:55 +02:00
parent 684508ab86
commit 4bc1241d7a

View File

@@ -0,0 +1,28 @@
#
#
# Scans the sourcecode with sonarqube
#
# Project: workflows
# Author: Marc Böhm <marc.boehm@captica.de>
# License: MIT License (see LICENSE.md)
#
# Copyright (c) captica GmbH est. 2021
#
name: Quality scan with sonarqube workflow
on:
workflow_call:
jobs:
quality_sonar:
name: Verify quality with sonarqube code scan
runs-on: docker-ubuntu
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_ACCESS_TOKEN }}
submodules: 'true'
- name: SonarQube Quality Scan
uses: sonarsource/sonarqube-scan-action@v3.0.0 # https://github.com/marketplace/actions/official-sonarqube-scan
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}