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.2.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

cdk_codebuild_sonarcloud-0.0.2-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file cdk_codebuild_sonarcloud-0.0.2.tar.gz.

File metadata

File hashes

Hashes for cdk_codebuild_sonarcloud-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5a3af84057ea0780a6cac68eabdce2368f0d645f5dfeb106945c5a40a1c5de70
MD5 3b325c1becb982050dcc0d0c63473386
BLAKE2b-256 b2bcf85c38a16aed1dc969a369c6adadbefb66e5ecce044b08974f1946fdafd3

See more details on using hashes here.

File details

Details for the file cdk_codebuild_sonarcloud-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk_codebuild_sonarcloud-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 174cb3fec5dc2b76bc6acda71f1156a87c63589b02a791a34714cb035e270838
MD5 85a0783193a4aa887252c0acaa42bebf
BLAKE2b-256 fa008dae46b980635239ef936af616e1dc5b32431ec22ff34cbcc578c74fc9a3

See more details on using hashes here.

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