Skip to content

Fix sonarcloud scan

Fix sonarcloud scan #2

name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
working-directory: frontend
uses: SonarSource/sonarcloud-github-action@master

Check failure on line 18 in .github/workflows/sonar-frontend.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/sonar-frontend.yml (Line: 18, Col: 9): Unexpected value 'uses' .github/workflows/sonar-frontend.yml (Line: 16, Col: 9): Required property is missing: run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_FRONTEND_TOKEN }}