Skip to main content

cloudcomponents Logo

@cloudcomponents/cdk-codepipeline-dockerfile-linter-action

Build Status cdkdx typescript python

CodePipeline action to lint dockerfiles with hadolint

Install

TypeScript/JavaScript:

npm i @cloudcomponents/cdk-codepipeline-dockerfile-linter-action

Python:

pip install cloudcomponents.cdk-codepipeline-dockerfile-linter-action

How to use

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.

Example

See more complete examples.

License

MIT

Metadata

Release files for cloudcomponents.cdk-codepipeline-dockerfile-linter-action 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cloudcomponents.cdk-codepipeline-dockerfile-linter-action 2.3.0
File Size Uploaded Provenance Actions
cloudcomponents.cdk-codepipeline-dockerfile-linter-action-2.3.0.tar.gz 74.5 kB Without provenance Details for cloudcomponents.cdk-codepipeline-dockerfile-linter-action-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cloudcomponents.cdk-codepipeline-dockerfile-linter-action 2.3.0
File Interpreter ABI Platform Actions
cloudcomponents.cdk_codepipeline_dockerfile_linter_action-2.3.0-py3-none-any.whl Python 3 none any Details for cloudcomponents.cdk_codepipeline_dockerfile_linter_action-2.3.0-py3-none-any.whl

Total release size: 148.4 kB

Release files / cloudcomponents.cdk-codepipeline-dockerfile-linter-action-2.3.0.tar.gz

Download URL cloudcomponents.cdk-codepipeline-dockerfile-linter-action-2.3.0.tar.gz
Size 74.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8f3651f6147d23e9636be72a18206dadfde1e049bfa496fa84584308db1ee00a
BLAKE2b-256 checksum
How to use checksums
9ce74baacdb0d13b6c806798a41645d33141c4e4597c30a0107597025a1c35a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / cloudcomponents.cdk_codepipeline_dockerfile_linter_action-2.3.0-py3-none-any.whl

Download URL cloudcomponents.cdk_codepipeline_dockerfile_linter_action-2.3.0-py3-none-any.whl
Size 73.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c8136ec90f2e6cc20bfdbbd4caf933543bc90e576ae3443d2559865bf161ef4
BLAKE2b-256 checksum
How to use checksums
ddcc43147b056d528ff683fc9c5fe408a0d4a7df03211a655bd35a2d7b0b467a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for cloudcomponents.cdk-codepipeline-dockerfile-linter-action 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page