CodePipeline action to integrate Anchore Engine into your pipeline
Project description
@cloudcomponents/cdk-codepipeline-anchore-inline-scan-action
CodePipeline action to integrate Anchore Engine into your pipeline
Install
TypeScript/JavaScript:
npm i @cloudcomponents/cdk-codepipeline-anchore-inline-scan-action
Python:
pip install cloudcomponents.cdk-codepipeline-anchore-inline-scan-action
How to use
import { Construct, Stack, StackProps } from '@aws-cdk/core';
import { Repository } from '@aws-cdk/aws-codecommit';
import { Pipeline, Artifact } from '@aws-cdk/aws-codepipeline';
import { CodeCommitSourceAction } from '@aws-cdk/aws-codepipeline-actions';
import { CodePipelineDockerfileLinterAction } from '@cloudcomponents/cdk-codepipeline-dockerfile-linter-action';
import { CodePipelineAnchoreInlineScanAction } from '@cloudcomponents/cdk-codepipeline-anchore-inline-scan-action';
export class ContainerAuditStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
const repository = new Repository(this, 'Repository', {
repositoryName: 'container-audit-repository',
});
const sourceArtifact = new Artifact();
const sourceAction = new CodeCommitSourceAction({
actionName: 'CodeCommit',
repository,
output: sourceArtifact,
branch: 'master',
});
const linterAction = new CodePipelineDockerfileLinterAction({
actionName: 'Linter',
input: sourceArtifact,
});
const vulnScanAction = new CodePipelineAnchoreInlineScanAction({
actionName: 'VulnScan',
input: sourceArtifact,
});
new Pipeline(this, 'Pipeline', {
pipelineName: 'container-audit-pipeline',
stages: [
{
stageName: 'Source',
actions: [sourceAction],
},
{
stageName: 'Audit',
actions: [linterAction, vulnScanAction],
},
],
});
}
}
API Reference
See API.md.
Example
See more complete examples.
License
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
Close
Hashes for cloudcomponents.cdk-codepipeline-anchore-inline-scan-action-1.50.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 095656c83ee9f9f5aaa92958195786abcefa0c31c2a0a37d33b65b615e205b84 |
|
MD5 | 6ede5d7b2a2b370a7a09a33d4104bddd |
|
BLAKE2b-256 | 456208b19d4c8dd04ac3e603f16364378269d7b35d241dbbeaaa4b9746978a90 |
Close
Hashes for cloudcomponents.cdk_codepipeline_anchore_inline_scan_action-1.50.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f10e2c5b0d91468d4ccaa4f784c8ba03a89e1bca6ce79e0ba78aab27a64ef64c |
|
MD5 | be0a5645a8775f43fee6e60493dfc592 |
|
BLAKE2b-256 | dd89d3395d5987bba64dd0c4b2c20f8d8d7d368ec6bd181c33d352bde557e1b5 |