cloudcomponents.cdk-codepipeline-anchore-inline-scan-action


Namecloudcomponents.cdk-codepipeline-anchore-inline-scan-action JSON
Version 2.3.0 PyPI version JSON
download
home_pagehttps://github.com/cloudcomponents/cdk-components
SummaryCodePipeline action to integrate Anchore Engine into your pipeline
upload_time2024-05-16 19:28:32
maintainerNone
docs_urlNone
authorhupe1980
requires_python~=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![cloudcomponents Logo](https://raw.githubusercontent.com/cloudcomponents/cdk-constructs/master/logo.png)](https://github.com/cloudcomponents/cdk-constructs)

# @cloudcomponents/cdk-codepipeline-anchore-inline-scan-action

[![Build Status](https://github.com/cloudcomponents/cdk-constructs/workflows/Build/badge.svg)](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)
[![cdkdx](https://img.shields.io/badge/buildtool-cdkdx-blue.svg)](https://github.com/hupe1980/cdkdx)
[![typescript](https://img.shields.io/badge/jsii-typescript-blueviolet.svg)](https://www.npmjs.com/package/@cloudcomponents/cdk-codepipeline-anchore-inline-scan-action)
[![python](https://img.shields.io/badge/jsii-python-blueviolet.svg)](https://pypi.org/project/cloudcomponents.cdk-codepipeline-anchore-inline-scan-action/)

> CodePipeline action to integrate [Anchore Engine](https://docs.anchore.com/current/) into your pipeline

## Install

TypeScript/JavaScript:

```bash
npm i @cloudcomponents/cdk-codepipeline-anchore-inline-scan-action
```

Python:

```bash
pip install cloudcomponents.cdk-codepipeline-anchore-inline-scan-action
```

## How to use

```python
import { CodePipelineAnchoreInlineScanAction } from '@cloudcomponents/cdk-codepipeline-anchore-inline-scan-action';
import { CodePipelineDockerfileLinterAction } from '@cloudcomponents/cdk-codepipeline-dockerfile-linter-action';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Repository } from 'aws-cdk-lib/aws-codecommit';
import { Pipeline, Artifact } from 'aws-cdk-lib/aws-codepipeline';
import { CodeCommitSourceAction } from 'aws-cdk-lib/aws-codepipeline-actions';
import { Construct } from 'constructs';

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](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-codepipeline-anchore-inline-scan-action/API.md).

## Example

See more complete [examples](https://github.com/cloudcomponents/cdk-constructs/tree/master/examples).

## License

[MIT](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-codepipeline-anchore-inline-scan-action/LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cloudcomponents/cdk-components",
    "name": "cloudcomponents.cdk-codepipeline-anchore-inline-scan-action",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "hupe1980",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/77/f1/c4eeac3d5b679ea32b7ded4b9bcd2d92f4c63534e454a797166f52834534/cloudcomponents.cdk-codepipeline-anchore-inline-scan-action-2.3.0.tar.gz",
    "platform": null,
    "description": "[![cloudcomponents Logo](https://raw.githubusercontent.com/cloudcomponents/cdk-constructs/master/logo.png)](https://github.com/cloudcomponents/cdk-constructs)\n\n# @cloudcomponents/cdk-codepipeline-anchore-inline-scan-action\n\n[![Build Status](https://github.com/cloudcomponents/cdk-constructs/workflows/Build/badge.svg)](https://github.com/cloudcomponents/cdk-constructs/actions?query=workflow=Build)\n[![cdkdx](https://img.shields.io/badge/buildtool-cdkdx-blue.svg)](https://github.com/hupe1980/cdkdx)\n[![typescript](https://img.shields.io/badge/jsii-typescript-blueviolet.svg)](https://www.npmjs.com/package/@cloudcomponents/cdk-codepipeline-anchore-inline-scan-action)\n[![python](https://img.shields.io/badge/jsii-python-blueviolet.svg)](https://pypi.org/project/cloudcomponents.cdk-codepipeline-anchore-inline-scan-action/)\n\n> CodePipeline action to integrate [Anchore Engine](https://docs.anchore.com/current/) into your pipeline\n\n## Install\n\nTypeScript/JavaScript:\n\n```bash\nnpm i @cloudcomponents/cdk-codepipeline-anchore-inline-scan-action\n```\n\nPython:\n\n```bash\npip install cloudcomponents.cdk-codepipeline-anchore-inline-scan-action\n```\n\n## How to use\n\n```python\nimport { CodePipelineAnchoreInlineScanAction } from '@cloudcomponents/cdk-codepipeline-anchore-inline-scan-action';\nimport { CodePipelineDockerfileLinterAction } from '@cloudcomponents/cdk-codepipeline-dockerfile-linter-action';\nimport { Stack, StackProps } from 'aws-cdk-lib';\nimport { Repository } from 'aws-cdk-lib/aws-codecommit';\nimport { Pipeline, Artifact } from 'aws-cdk-lib/aws-codepipeline';\nimport { CodeCommitSourceAction } from 'aws-cdk-lib/aws-codepipeline-actions';\nimport { Construct } from 'constructs';\n\nexport class ContainerAuditStack extends Stack {\n  constructor(scope: Construct, id: string, props?: StackProps) {\n    super(scope, id, props);\n\n    const repository = new Repository(this, 'Repository', {\n      repositoryName: 'container-audit-repository',\n    });\n\n    const sourceArtifact = new Artifact();\n\n    const sourceAction = new CodeCommitSourceAction({\n      actionName: 'CodeCommit',\n      repository,\n      output: sourceArtifact,\n      branch: 'master',\n    });\n\n    const linterAction = new CodePipelineDockerfileLinterAction({\n      actionName: 'Linter',\n      input: sourceArtifact,\n    });\n\n    const vulnScanAction = new CodePipelineAnchoreInlineScanAction({\n      actionName: 'VulnScan',\n      input: sourceArtifact,\n    });\n\n    new Pipeline(this, 'Pipeline', {\n      pipelineName: 'container-audit-pipeline',\n      stages: [\n        {\n          stageName: 'Source',\n          actions: [sourceAction],\n        },\n        {\n          stageName: 'Audit',\n          actions: [linterAction, vulnScanAction],\n        },\n      ],\n    });\n  }\n}\n```\n\n## API Reference\n\nSee [API.md](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-codepipeline-anchore-inline-scan-action/API.md).\n\n## Example\n\nSee more complete [examples](https://github.com/cloudcomponents/cdk-constructs/tree/master/examples).\n\n## License\n\n[MIT](https://github.com/cloudcomponents/cdk-constructs/tree/master/packages/cdk-codepipeline-anchore-inline-scan-action/LICENSE)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CodePipeline action to integrate Anchore Engine into your pipeline",
    "version": "2.3.0",
    "project_urls": {
        "Homepage": "https://github.com/cloudcomponents/cdk-components",
        "Source": "https://github.com/cloudcomponents/cdk-components.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "316b7ce6fbe1d476af0234cedb40bee44208107da172a03fd7c829c0d2bccfb7",
                "md5": "790b563d0422bee9cea38f8b14698bc8",
                "sha256": "dea6c51e76978772f13580f1da94c711b8e4fe2bfb617eff04ab34984d112034"
            },
            "downloads": -1,
            "filename": "cloudcomponents.cdk_codepipeline_anchore_inline_scan_action-2.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "790b563d0422bee9cea38f8b14698bc8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.8",
            "size": 137035,
            "upload_time": "2024-05-16T19:28:20",
            "upload_time_iso_8601": "2024-05-16T19:28:20.336210Z",
            "url": "https://files.pythonhosted.org/packages/31/6b/7ce6fbe1d476af0234cedb40bee44208107da172a03fd7c829c0d2bccfb7/cloudcomponents.cdk_codepipeline_anchore_inline_scan_action-2.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "77f1c4eeac3d5b679ea32b7ded4b9bcd2d92f4c63534e454a797166f52834534",
                "md5": "ecfe02c6ef741ece23c1d69a718c7c7b",
                "sha256": "7ec81f42f7655ebf17e681f6ee5400b6d4be9e4f099faa0bf143257f1e735e6f"
            },
            "downloads": -1,
            "filename": "cloudcomponents.cdk-codepipeline-anchore-inline-scan-action-2.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ecfe02c6ef741ece23c1d69a718c7c7b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.8",
            "size": 137624,
            "upload_time": "2024-05-16T19:28:32",
            "upload_time_iso_8601": "2024-05-16T19:28:32.947717Z",
            "url": "https://files.pythonhosted.org/packages/77/f1/c4eeac3d5b679ea32b7ded4b9bcd2d92f4c63534e454a797166f52834534/cloudcomponents.cdk-codepipeline-anchore-inline-scan-action-2.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-16 19:28:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cloudcomponents",
    "github_project": "cdk-components",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cloudcomponents.cdk-codepipeline-anchore-inline-scan-action"
}
        
Elapsed time: 0.25528s