From 1a6f945969be188984e106fcb2b25b8494745e37 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 16 Jul 2022 21:46:56 -0700 Subject: [PATCH] Prepare for GitLab tools [skip ci] --- .gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7846466..a273bc9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,11 @@ +stages: + - .pre + - build + - test + - deploy + - container_security + - .post + image: docker:latest services: @@ -6,6 +14,34 @@ services: before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY +# +# GitLab tools +# +include: + - template: Security/Container-Scanning.gitlab-ci.yml + - template: Security/Dependency-Scanning.gitlab-ci.yml + - template: Security/License-Scanning.gitlab-ci.yml + - template: Security/SAST.gitlab-ci.yml + - template: Security/Secret-Detection.gitlab-ci.yml + +container_scanning: + # TODO: Need to run this after the build and push. + # TODO: Need to set variable for container image and tag. + when: never + stage: container_security + +dependency_scanning: + before_script: echo "" + +license_scanning: + before_script: echo "" + +sast: + before_script: echo "" + +secret_detection: + before_script: echo "" + # # TESTS # -- GitLab