diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml new file mode 100644 index 00000000000..fc6489fc7e8 --- /dev/null +++ b/.github/workflows/sonarcloud.yml @@ -0,0 +1,24 @@ +name: SonarCloud +on: + push: + branches: [main, master, develop] + pull_request: + branches: [main, master, develop] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +permissions: + contents: read +jobs: + sonar: + runs-on: ubuntu-24.04 + continue-on-error: true + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + fetch-depth: 0 + - name: SonarCloud Scan + uses: SonarSource/sonarqube-scan-action@aa2faad981ed3bc8524483b7dbb67bd4c88f84d4 # v6 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000000..072abf8e2b7 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,2 @@ +sonar.organization=kooshapari +sonar.projectKey=KooshaPari_helios-cli