Skip to main content

cdk-codebuild-sonarcloud

Project description

This CDK construct creates an AWS Codebuild action to perform static code analysis using Sonarcloud.

Getting started

Here is how to include the construct in your CDK code :

const sonarcloudScan = new CDKCodeBuildSonarcloud(this, 'SonarcloudBuildAction', {
      sourceOutput: sourceOutput,
      sonarOrganizationName: 'my-sonarcloud-organization-name',
      sonarProjectName: 'my-sonarcloud-project-name',
});

Check Here for an example on how to use the construct.

Security

A Sonarcloud account is required to use this construct. Create a Sonarcloud token to connect securely to Sonarcloud from AWS CodeBuild. Store this token in your AWS account in AWS Secret Manager, name the secret "sonar-token" and use "SONAR_TOKEN" as the secret key.

Please review the AWS Secret Manager security best practices in order to securely create and manage your secret.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk_codebuild_sonarcloud-0.0.0.tar.gz (55.0 kB view hashes)

Uploaded Source

Built Distribution

cdk_codebuild_sonarcloud-0.0.0-py3-none-any.whl (54.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page