feat(ci): fix CI, switch to self-hosted SonarQube
All checks were successful
Enforce Conventional Commit PR Title / Validate PR Title (pull_request_target) Successful in 5s
CI / ci (pull_request) Successful in 1m29s
Security / sonarqube (push) Successful in 3m9s
Security / snyk (push) Successful in 4m25s

This commit is contained in:
2025-02-09 20:38:33 +00:00
parent a9895a9807
commit 44d6f9d161
10 changed files with 44 additions and 13 deletions

View File

@ -1,14 +1,11 @@
name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- "README.md"
- "LICENSE.md"
- ".gitignore"
- "renovate.json"
- ".gitea/CODEOWNERS"
- ".archive"
types:
- opened
- edited
- synchronize
- reopened
jobs:
ci:
@ -30,7 +27,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "${{ vars.PYTHON_VERSION }}"
python-version: "3.13"
- name: uv cache
uses: actions/cache@v4
@ -58,10 +55,11 @@ jobs:
- name: Minimize uv cache
run: uv cache prune --ci
- name: SonarQube Cloud Scan
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4.2.1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
- name: Snyk Vulnerability Scan
uses: snyk/actions/python@master