SonarQube Server

Policy enginesonarqube

Self-hosted code analysis server whose built-in Sonar way quality gate passes or fails each project on its new code.

Provider
default
Category
Operations
Properties · 5 set by this component
propertytypevaluesrequiredkind defaultthis component
defaultQualityGate · component propertystring—noSonar wayinherited
effectenumaudit | deny | modify | deploy-if-not-existsno—▸ audit
enforcementModeenumenforced | disabledno—▸ enforced
managedboolean—nofalse▸ false
newCodeCoveragePercent · component propertyinteger—no80inherited
newCodeDuplicationPercent · component propertyinteger—no3inherited
policyCountinteger—no—inherited
remediationboolean—nofalse▸ false
scopeenumresource | group | account | organizationno—▸ resource
securityHotspotsReviewedPercent · component propertyinteger—no100inherited
Rules that apply · 0

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

No rule reads this kind yet. That is a gap, not a guarantee.
Use it in a design
nodes:
  - { id: "sonarqube", component: "sonarqube" }
Other Policy engine products · 56
Cloud Configalibaba-cloud-configalibabacloudpolicy-engineData Security Centeralibaba-data-security-centeralibabacloudpolicy-engineAmazon CodeGuru Revieweraws-codeguru-reviewerawspolicy-engineAWS Configaws-configawspolicy-engineAWS Control Toweraws-control-towerawspolicy-engineIAM Access Analyzeraws-iam-access-analyzerawspolicy-engineAWS Lake Formationaws-lake-formationawspolicy-engineAWS License Manageraws-license-managerawspolicy-engineAWS Organizationsaws-organizationsawspolicy-engineAWS Resource Access Manageraws-ramawspolicy-engineAmazon Verified Permissionsaws-verified-permissionsawspolicy-engineMicrosoft Entra Conditional Accessazure-conditional-accessazurepolicy-engineAzure Policyazure-policyazurepolicy-engineMicrosoft Entra Privileged Identity Managementazure-privileged-identity-managementazurepolicy-engineCloudflare Data Loss Preventioncloudflare-dlpcloudflarepolicy-engineCalypsoAIcalypsoaipolicy-engineCerboscerbospolicy-engineOPA Gatekeepergatekeeperpolicy-engineGuardrails AIguardrails-aipolicy-engineHiddenLayer AI Security Platformhiddenlayerpolicy-engineKubeArmorkubearmorpolicy-engineKubewardenkubewardenpolicy-engineKyvernokyvernopolicy-engineLakera Guardlakera-guardpolicy-engineLLM Guardllm-guardpolicy-engineNeMo Guardrailsnemo-guardrailspolicy-engineOpen Policy Agentopapolicy-enginePermit.iopermit-iopolicy-engineGeneric policy enginepolicy-enginepolicy-enginePrompt Securityprompt-securitypolicy-engineProtect AIprotect-aipolicy-engineRebuffrebuffpolicy-engineRobust Intelligencerobust-intelligencepolicy-engineDigitalOcean CSPMdigitalocean-cspmdigitaloceanpolicy-engineAccess Context Managergoogle-access-context-managergcppolicy-engineAssured Workloadsgoogle-assured-workloadsgcppolicy-engineBinary Authorizationgoogle-binary-authorizationgcppolicy-engineIdentity and Access Managementgoogle-cloud-iamgcppolicy-engineFirebase App Checkgoogle-firebase-app-checkgcppolicy-engineModel Armorgoogle-model-armorgcppolicy-engine
and 16 more → Policy engine page
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# SonarQube Server: self-hosted code quality and security analysis server whose quality gate
# decides whether an analysed project passes. "Managing quality gates" states the built-in Sonar
# way gate is provided by Sonar, activated by default and read-only, and that every project not
# explicitly assigned to another gate uses the instance default gate. The same page gives the
# Sonar way conditions on new code: no new issues, no reliability, security or maintainability
# rating worse than A, security hotspots reviewed at 100%, coverage at or above 80% and
# duplicated lines at or below 3%. The gate reports a pass or fail status; blocking a pipeline on
# it is the CI system's choice, so the effect is audit.
schemaVersion: "1"
type: "component"
id: "sonarqube"
kind: "policy-engine"
provider: "default"
docs: "https://docs.sonarsource.com/sonarqube-server/latest/"
defaults:
  managed: false
  effect: "audit"
  enforcementMode: "enforced"
  scope: "resource"
  remediation: false
properties:
  defaultQualityGate:
    type: "string"
    default: "Sonar way"
  newCodeCoveragePercent:
    type: "integer"
    default: 80
  newCodeDuplicationPercent:
    type: "integer"
    default: 3
  securityHotspotsReviewedPercent:
    type: "integer"
    default: 100

The same page as markdown, for an agent: /catalogue/components/sonarqube.md