Skip to content

ci: add SonarQube analysis workflow #1

ci: add SonarQube analysis workflow

ci: add SonarQube analysis workflow #1

name: SonarQube Analysis
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
sonarqube:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
args: >
-Dsonar.projectKey=TimKenobi_${{ github.event.repository.name }}
-Dsonar.projectName=${{ github.event.repository.name }}