Skip to content

Sonar Scan Workflow

Sonar Scan Workflow #1

Workflow file for this run

on:
# Trigger analysis when pushing to your main branches, and when creating a pull request.
push:
branches:
- '**'
name: Sonar Scan Workflow
jobs:
sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clones is recommended for improving the relevancy of reporting
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2.3.0 # See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan
env:
SONAR_TOKEN: 'sqb_341f4debd5164d13075953ea79b1e8acba34f1a5'
SONAR_HOST_URL: 'https://sq.beehyv.com'
with:
args: >
-Dsonar.python.coverage.reportPaths=coverage.xml
-Dsonar.projectKey=Okahu \
-Dsonar.projectName='Okahu'