From babbb6fb3bcfa373554253b1554bb27cc57f2930 Mon Sep 17 00:00:00 2001 From: Max Regan Date: Wed, 24 Mar 2021 15:15:10 +0000 Subject: [PATCH] Set .gitlab-ci.yml to enable or configure SAST --- .gitlab-ci.yml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18a034a..1adb8c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,25 @@ +# You can override the included template(s) by including variable overrides +# See https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings +# Note that environment variables can be set in several places +# See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables image: python:3.8 - stages: - - build - +- build +- test before_script: - - "pip install -U platformio" - +- pip install -U platformio main_mcu: stage: build - script: - - cd firmware/main_mcu/ - - cp src/config-example.h src/config.h - - pio run - + script: + - cd firmware/main_mcu/ + - cp src/config-example.h src/config.h + - pio run lowpower_mcu: stage: build - script: - - cd firmware/lowpower_mcu/ - - pio run + script: + - cd firmware/lowpower_mcu/ + - pio run +sast: + stage: test +include: +- template: Security/SAST.gitlab-ci.yml