diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 78464663a31ef7a8c6bf67ffddd9877918ef2690..a273bc966bdacba155442b23b436b16073611f21 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 #