Skip to content

Feature/allow single submissions #1092

Feature/allow single submissions

Feature/allow single submissions #1092

name: SonarCloud Scan (ReportViewer)
on:
push:
branches:
- main
- develop
paths:
- "report-viewer/**"
- ".github/workflows/sonarcloud-report-viewer.yml"
pull_request:
types: [opened, synchronize, reopened]
paths:
- "report-viewer/**"
- ".github/workflows/sonarcloud-report-viewer.yml"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
projectBaseDir: report-viewer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_REPORT_VIEWER }}