Skip to content

Test Sonar workflow

Test Sonar workflow #3

Workflow file for this run

on:
pull_request:
branches:
- master
name: Sonar Workflow
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
cache: 'gradle'
distribution: 'oracle'
- name: SonarCloud Scan
run: ./gradlew sonarqube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:

Check failure on line 22 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / Sonar Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 22, Col: 9): Unexpected value 'with'
args: >
-Dsonar.pullrequest.key=${{ github.event.number }}
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.sha }}
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.sha }}
-Dsonar.pullrequest.provider=github