Skip to content

CHEF-4896: Configures SonarQube #4

CHEF-4896: Configures SonarQube

CHEF-4896: Configures SonarQube #4

Workflow file for this run

name: SonarQube scan
on:
# Trigger analysis when pushing to your main branches, and when creating a pull request.
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarqube:
name: SonarQube scan
runs-on: ip-range-controlled
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}