Skip to content

Commit 5c5229e

Browse files
brabojclaude
andcommitted
feat: add SonarCloud CI workflow
Replaces the GitHub App integration with a CI-based scan. Scans astro-site/src on every PR and push to main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1073fb4 commit 5c5229e

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/sonarcloud.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: SonarCloud
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
sonarcloud:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: SonarCloud Scan
21+
uses: SonarSource/sonarqube-scan-action@v5
22+
env:
23+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sonar.projectKey=braboj_tutorial-git
2+
sonar.organization=braboj
3+
sonar.sources=astro-site/src
4+
sonar.exclusions=**/node_modules/**,**/dist/**,**/.astro/**

0 commit comments

Comments
 (0)