From 3ddfe63a5eac331f92922740a09872fa62fefe02 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 16 Jul 2022 14:35:11 -0700
Subject: [PATCH] Put GitLab scans in their own stage

---
 plugins/default.yml          | 3 +++
 plugins/templates/stages.yml | 7 +++++++
 2 files changed, 10 insertions(+)
 create mode 100644 plugins/templates/stages.yml

diff --git a/plugins/default.yml b/plugins/default.yml
index ee9ee5b..48fd9c1 100644
--- a/plugins/default.yml
+++ b/plugins/default.yml
@@ -1,4 +1,5 @@
 include:
+  - remote: https://git.ethitter.com/gitlab/ci/wordpress/-/blob/add/sast-dep-gl/plugins/templates/stages.yml
   - remote: https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/templates/variables.yml
   - remote: https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/templates/cache.yml
   - remote: https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/templates/before-script.yml
@@ -8,6 +9,8 @@ include:
 
 dependency_scanning:
   before_script: echo ""
+  stage: security
 
 sast:
   before_script: echo ""
+  stage: security
diff --git a/plugins/templates/stages.yml b/plugins/templates/stages.yml
new file mode 100644
index 0000000..3ced010
--- /dev/null
+++ b/plugins/templates/stages.yml
@@ -0,0 +1,7 @@
+stages:
+  - .pre
+  - build
+  - test
+  - security
+  - deploy
+  - .post
-- 
GitLab