ci: add SonarCloud scan via shared reusable workflow (#104)

This commit is contained in:
Dylan M. Taylor
2026-10-30 10:30:15 -04:00
committed by GitHub
parent 60b84aed84
commit 95b1e6a41d
3 changed files with 26 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
name: SonarCloud
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
concurrency:
group: sonarcloud-${{ github.ref }}
# A push to main is the run that publishes coverage; superseded runs there would never finish.
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
sonarcloud:
# Tracked at @main so org-wide CI improvements propagate without PR churn.
uses: storytold/craft-common-actions/.github/workflows/sonarcloud.yml@main
secrets: inherit
+2
View File
@@ -1,5 +1,7 @@
# Craft AI integrations
<a href="https://sonarcloud.io/project/overview?id=storytold_craft-ai-integrations"><img alt="Scanned by SonarCloud" src="https://img.shields.io/badge/Scanned_by-SonarCloud-4b9fd5?style=flat-square&logo=sonarqubecloud&logoColor=white"></a>
One AI connection for every Craft app. A person sets up a tool and its model once, in the launcher or
natively in any app, and every app that has that tool uses it with no further setup. The shared crates
own connections, models, the tool to model binding, the model picker, consent and jobs. Each app keeps
+3
View File
@@ -0,0 +1,3 @@
sonar.projectKey=storytold_craft-ai-integrations
sonar.organization=storytold
sonar.coverage.exclusions=**/tools/**,**/docs/**