Skip to content

ci: add Sonar scan workflow #1

ci: add Sonar scan workflow

ci: add Sonar scan workflow #1

Workflow file for this run

name: Sonar Scan
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pull-requests: read
jobs:
sonar:
name: Sonar Scan
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v8.2.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}