AWS CodePipeline CodeBuild step example

Note the scan's input artifact must be provided with the build's output artifact as shown in the configuration.

Example of Javascript CodeBuild (buildspec.yml)

version: 0.2
phases:
  build:
    commands:
      - npm install
artifacts:
  files:
    - '**/*'

Example of Maven CodeBuild (buildspec.yml)

version: 0.2
phases:
  build:
    commands:
      - mvn install
artifacts:
  files:
    - '**/*'

Last updated

More information

Snyk privacy policy

© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.