29 lines
778 B
YAML
29 lines
778 B
YAML
name: SonarQube Scan
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
sonarqube:
|
|
name: SonarQube Trigger
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0 # Disables shallow clone for more accurate blame/analysis data
|
|
|
|
- name: Run SonarQube Scanner
|
|
uses: sonarsource/sonarqube-scan-action@v6
|
|
with:
|
|
# Verhindert den Abbruch auf dem Pi, falls GPG/dirmngr fehlen
|
|
skipSignatureVerification: true
|
|
env:
|
|
SONAR_HOST_URL: http://docker01.fritz.box:9001
|
|
SONAR_TOKEN: sqp_450c392dfb94696fc68a00a0dca31bf93dfaa350
|
|
SONAR_SCANNER_OPTS: "-Xmx512m -Xms256m"
|