Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 834 Bytes

adding-hawkeye.md

File metadata and controls

29 lines (21 loc) · 834 Bytes

Adding Hawkeye to the deploy pipeline

Add the following to the sample-flask-app's docker-compose.yml file (under services):

hawkeye:
    image: stono/hawkeye
    command: scan --target /usr/src/app
    volumes:
      - ./web:/usr/src/app

Add a new “Execute shell” build step to run Hawkeye with the following command:

docker-compose run hawkeye

Now commit the changes to docker-compose.yml

git add docker-compose.yml
git commit -m 'add hawkeye'

Running Hawkeye

Return to the sample-flask-app job and select Build Now. This time you should see the build fail, navigate into the build instance and review the console output to discover why. What changes would we need to make to get the build passing again?