modified: .gitea/workflows/sonarqube.yml
/ sonarqube (push) Failing after 3s

new file:   .gitea/workflows/sonarqube_manual.yml
This commit is contained in:
2026-05-25 14:16:41 -04:00
parent e518603f25
commit 0744d9622f
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v8.1.0
with:
fetch-depth: 0
+29
View File
@@ -0,0 +1,29 @@
on:
workflow_dispatch:
inputs:
reason:
description: 'Reason for running'
required: false
default: 'Manual trigger'
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarqube:
# 1. Update this to match your EXACT Gitea runner label
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v8.1.0
with:
fetch-depth: 0
- name: SonarQube Scan
# 2. Replaced with the official, actively maintained action
uses: SonarSource/sonarqube-scan-action@v8.1.0
env:
# 3. SonarSource uses environment variables, not 'with' parameters
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}