From 18441d77808904ad99ba867ff43bc56055b6ff74 Mon Sep 17 00:00:00 2001 From: thiago-gitlab <77592975+thiago-gitlab@users.noreply.github.com> Date: Thu, 5 Aug 2021 10:48:17 +1000 Subject: [PATCH] GitLab CI integration documentation Recommend the native GitLab integration. --- docs/advanced/integrations/gitlab-ci.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/advanced/integrations/gitlab-ci.md b/docs/advanced/integrations/gitlab-ci.md index e3682ee62308..b09243a97765 100644 --- a/docs/advanced/integrations/gitlab-ci.md +++ b/docs/advanced/integrations/gitlab-ci.md @@ -1,5 +1,11 @@ # GitLab CI +If you're a GitLab Ultimate customer, GitLab 14.0 and above include out-of-the-box integration with Trivy. To enable it for your project, simply add the container scanning template to your `.gitlab-ci.yml` file. For more details, please refer to [GitLab's documentation](https://docs.gitlab.com/ee/user/application_security/container_scanning/). + +If you're using an earlier version of GitLab, you can still use the new integration by copying the [contents of the 14.0 template](https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Security/Container-Scanning.gitlab-ci.yml) to your configuration. + +Alternatively, you can always use the example configurations below. + ```yaml stages: - test