A GitHub custom action for doing a pretty simple job to fetch some code metrics reported by Sonarqube and publish it accordingly to Datadog.
Required Sonarqube Base URL.
Required Datadog Base URL.
Required Your DataDog API Key. Get it from your DataDog subscription.
Required The component name (could be a project name or a service name).
Required List of code metric names separated by comma (if more than one metric). More reading on Sonarqube metrics can be checked from here.
Required Type of metric used in report. Only support enum values as follow:
- 0 (unspecified)
- 1 (count)
- 2 (rate)
- 3 (gauge)
Unit of metric to be used in report. Check this link.
uses: yauritux/scm-dd-collector@v1.2
with:
sonar-base-url: ${{ secrets.DD_SONAR_URL }}
datadog-base-url: ${{ secrets.DD_BASE_URL }}
component-name: platform-api
metric-name: coverage,code_smells,vulnerabilities,security_hotspots
metric-type: 3
metric-unit: percent
dd-api-key: ${{ secrets.DD_API_KEY}}