Skip to content

Update run_sonar_cloud.yml #1

Update run_sonar_cloud.yml

Update run_sonar_cloud.yml #1

Workflow file for this run

name: SonarCloud

Check failure on line 1 in .github/workflows/run_sonar_cloud.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/run_sonar_cloud.yml

Invalid workflow file

`workflow_dispatch workflow_call` is not a valid event name
on:
workflow_dispatch
workflow_call
jobs:
sonar_cloud:
name: Run SonarCloud
runs-on: macos-13-xlarge # Apple Silicon Runner
env:
sonarToken: ${{ secrets.SONAR_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Tools
run: |
brew install sonar-scanner
- name: Run Sonar
if: ${{ env.sonarToken != 0 }}
run: |
git fetch --unshallow --no-tags
sonar-scanner -Dsonar.token=${{ secrets.SONAR_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}