Container Scanning [ULTIMATE]
[Introduced][ee-3672] in [GitLab Ultimate][ee] 10.4.
Going a step further, GitLab can show the vulnerability list right in the merge request widget area.
If you distribute your application with Docker, then there's a great chance that your image is based on other Docker images that may in turn contain some known vulnerabilities that could be exploited.
Having an extra job in your pipeline that checks for those vulnerabilities, and the fact that they are displayed inside a merge request, makes it very easy to perform audits for your Docker-based apps.
How it works
First of all, you need to define a job in your
.gitlab-ci.yml file that generates the
Container Scanning report artifact.
For more information on how the Container Scanning job should look like, check the
example on Container Scanning with GitLab CI/CD.
GitLab then checks this report, compares the found vulnerabilities between the source and target branches, and shows the information right on the merge request.