Skip to content

Sonarqube source

Sonarqube source #34

Workflow file for this run

name: Build
on:
pull_request:
types: [opened, reopened, synchronize]
branches:
- 'sonarqube'
jobs:
build:
name: Build and 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@v3
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ variables.SONAR_HOST_URL }}

Check failure on line 21 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 21, Col: 27): Unrecognized named-value: 'variables'. Located at position 1 within expression: variables.SONAR_HOST_URL
- uses: sonarsource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}