dependencies/.forgejo/workflows/sonarqube.yaml
Workflow config file is invalid. Please check your config file: yaml: line 30: did not find expected key
Oliver Weyhmueller 25e365f524
Some checks failed
release / Release (push) Failing after 36s
chore: fix ci
2025-01-07 12:03:39 +01:00

39 lines
1,017 B
YAML

---
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
name: SonarQube Scan
jobs:
sonarqube:
name: "SonarQube Trigger"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Initialize Environment"
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.0.4
with:
roleid: "${{ secrets.VAULT_ROLE_ID }}"
secretid: "${{ secrets.VAULT_SECRET_ID }}"
- name: "Cache SonarQube packages"
uses: https://github.com/actions/cache@v4
with:
path: ~/.sonar/cache
key: "${{ runner.os }}-sonar"
restore-keys: ""${{ runner.os }}-sonar"
- name: "SonarQube Scan"
env:
SONAR_TOKEN: "${{ env.SONARQUBE_TOKEN }}"
SONAR_HOST_URL: "${{ env.SONARQUBE_HOST }}"
run: "mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar"