Skip to content

Merge pull request #121 from z4nr34l/changeset-release/main #107

Merge pull request #121 from z4nr34l/changeset-release/main

Merge pull request #121 from z4nr34l/changeset-release/main #107

Workflow file for this run

name: SonarQube
on:
push:
branches: ['main']
permissions: read-all
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
with:
args: -Dsonar.projectKey=${{ secrets.SONAR_PROJECT_ID }} -Dsonar.projectVersion=${{ github.event.pull_request.head.sha }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- uses: sonarsource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}