This repository contains reusable GitHub Actions workflows for SonarQube analysis in TypeScript and .NET projects. These workflows help automate code quality checks across multiple repositories in the organization.
Purpose: Runs SonarQube analysis for TypeScript projects.
- 📥 Checkout repository
- ⚙️ Setup Node.js
- 📦 Install SonarScanner
- 🧪 Run tests & collect coverage (if enabled)
- 🔎 Execute SonarQube analysis
name: SonarQube Analysis
on:
push:
branches:
- develop
jobs:
sonarqube:
uses: autoguru-au/devsecops/.github/workflows/sonarqube-typescript.yml@main
with:
enable_tests: true
secrets: inherit
Purpose: Runs SonarQube analysis for .NET projects.
- 📥 Checkout repository
- ⚙️ Setup .NET environment
- 📦 Install SonarScanner
- 🧪 Run tests & collect coverage (if enabled)
- 🔎 Execute SonarQube analysis
name: SonarQube Analysis
on:
push:
branches:
- develop
jobs:
sonarqube:
uses: autoguru-au/devsecops/.github/workflows/sonarqube-dotnet.yml@main
with:
enable_tests: true
secrets: inherit
- 📂 Add the appropriate workflow reference in your repository inside
.github/workflows/
. - ⚙️ Configure the
enable_tests
parameter totrue
orfalse
as required. - 🔑 Ensure your repository has the required secrets:
SONAR_HOST_URL
SONAR_TOKEN
If your repository is internal, ensure GitHub Actions is enabled at the organization level to allow reusable workflows.
- Integrate the workflow in your repository as described above.
- No additional manual configuration is required.
- Enhance automation & reporting features.
For any issues or questions, please reach out to the DevSecOps Team.