Skip to content

ci: add SonarQube Cloud scan (Automatic Analysis unavailable for Astro project) - #504

Merged
setchy merged 1 commit into
mainfrom
fix/sonarcloud-ci-scan
Oct 4, 2026
Merged

setchy merged 1 commit into
mainfrom
fix/sonarcloud-ci-scan

Conversation

@setchy

@setchy setchy commented Oct 4, 2026

Copy link
Copy Markdown
Owner

What

Adds CI-based code analysis with SonarQube Cloud using SonarSource/sonarqube-scan-action.

Why

Automatic Analysis cannot be enabled for this project. SonarQube Cloud does not support .astro files, so only ~17% of the code (TypeScript/CSS) is analyzable — below the 20% eligibility threshold. The UI reports: 83.23% of your code is in languages unsupported by Automatic Analysis.

CI-based scan is the supported alternative and analyzes the TypeScript/CSS sources.

Prerequisite

Add a SONAR_TOKEN repository secret (SonarQube Cloud analysis token: https://sonarcloud.io/account/security) before this workflow will successfully scan.

Automatic Analysis is not available for this project because SonarQube
Cloud does not support .astro files (only ~17% of code is in supported
languages, below the 20% eligibility threshold).

Add a CI-based scan via sonarqube-scan-action that analyzes the
TypeScript/CSS sources on push to main and on pull requests.
@netlify

netlify Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for meme-driven-dev ready!

Name Link
🔨 Latest commit 99788d7
🔍 Latest deploy log https://app.netlify.com/projects/meme-driven-dev/deploys/6ac24754e88c90000850a9f8
😎 Deploy Preview https://deploy-preview-504--meme-driven-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 93
Accessibility: 100
Best Practices: 100
SEO: 100
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@setchy
setchy merged commit 6be735a into main Oct 4, 2026
11 checks passed
@setchy
setchy deleted the fix/sonarcloud-ci-scan branch October 4, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants