Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

There are two ways to scan container images in ECR:

...

  1. Authenticate with ECR. ECR uses authentication tokens that expire after 12 hours. The ecr get-login command generates a docker login command with authentication credentials.

    Code Block
    titleGenerate Docker Login for ECR (Linux)
    aws ecr get-login --region region --no-include-email | sh


  2. Invoke Synopsys Detect, and configure at least the following /wiki/spaces/INTDOCS/pages/622673.following:

    Code Block
    titleSynopsys Detect - Scanning Images
    bash <(curl -s https://detect.synopsys.com/detect.sh) \
    --blackduck.url=<URL> \
    --blackduck.api.token=<token> \
    --detect.docker.image=<Image URI> \
    --detect.project.name=<Project Name>


  3. On scan completion, navigate to the project version in Black Duck to view the scan results.
    Image Modified 

Using the CodePipeline Custom Action

...