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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cdk_codebuild_sonarcloud-0.0.2.tar.gz
.
File metadata
- Download URL: cdk_codebuild_sonarcloud-0.0.2.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a3af84057ea0780a6cac68eabdce2368f0d645f5dfeb106945c5a40a1c5de70 |
|
MD5 | 3b325c1becb982050dcc0d0c63473386 |
|
BLAKE2b-256 | b2bcf85c38a16aed1dc969a369c6adadbefb66e5ecce044b08974f1946fdafd3 |
File details
Details for the file cdk_codebuild_sonarcloud-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: cdk_codebuild_sonarcloud-0.0.2-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174cb3fec5dc2b76bc6acda71f1156a87c63589b02a791a34714cb035e270838 |
|
MD5 | 85a0783193a4aa887252c0acaa42bebf |
|
BLAKE2b-256 | fa008dae46b980635239ef936af616e1dc5b32431ec22ff34cbcc578c74fc9a3 |