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
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.core import Construct, Stack, StackProps
from aws_cdk.aws_codecommit import Repository
from aws_cdk.aws_codepipeline import Pipeline, Artifact
from aws_cdk.aws_codepipeline_actions import CodeCommitSourceAction
from cloudcomponents.cdk_codepipeline_dockerfile_linter_action import CodePipelineDockerfileLinterAction
from cloudcomponents.cdk_codepipeline_anchore_inline_scan_action import CodePipelineAnchoreInlineScanAction
class ContainerAuditStack(Stack):
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None):
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection)
repository = Repository(self, "Repository",
repository_name="container-audit-repository"
)
source_artifact = Artifact()
source_action = CodeCommitSourceAction(
action_name="CodeCommit",
repository=repository,
output=source_artifact,
branch="master"
)
linter_action = CodePipelineDockerfileLinterAction(
action_name="Linter",
input=source_artifact
)
vuln_scan_action = CodePipelineAnchoreInlineScanAction(
action_name="VulnScan",
input=source_artifact
)
Pipeline(self, "Pipeline",
pipeline_name="container-audit-pipeline",
stages=[StageProps(
stage_name="Source",
actions=[source_action]
), StageProps(
stage_name="Audit",
actions=[linter_action, vuln_scan_action]
)
]
)
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.0.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4acb4d0d4a0c7c7b8f3a8585d8248513605caeda18e400de5147726c63c78f96 |
|
MD5 | 4e3adebf1b806d9d1ae5506620d32e53 |
|
BLAKE2b-256 | ee5e8a3e39156504639975c396da544be55ed9537cf0589f37b0af3452b54aa0 |
Close
Hashes for cloudcomponents.cdk_codepipeline_anchore_inline_scan_action-1.0.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0110e44a2a692f95a9efb04179d414535a3a41086d99a789c7481f976e50967e |
|
MD5 | 39d5b39711037cb479e6e81a48a9840e |
|
BLAKE2b-256 | cce16e0f681990931e787d709fb08e3ef731dd54e0333b2916247a3fe2280f0b |