25 lines
661 B
YAML
25 lines
661 B
YAML
name: Analyse SonarQube
|
|
on: [push]
|
|
|
|
jobs:
|
|
sonarqube:
|
|
name: SonarQube Trigger
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Debug Gitea variables
|
|
run: |
|
|
echo "GITEA_REF: ${GITEA_REF}"
|
|
echo "GITEA_SHA: ${GITEA_SHA}"
|
|
echo "All env variables:"
|
|
env
|
|
- name: Checking out
|
|
uses: actions/checkout@v4
|
|
with:
|
|
# Disabling shallow clone is recommended for improving relevancy of reporting
|
|
fetch-depth: 0
|
|
- name: SonarQube Scan
|
|
uses: sonarsource/sonar-scanner-cli
|
|
with:
|
|
SONAR_HOST_URL: http://infra.bv.stef.lan:9000
|
|
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
|