Merge branch 'set-sast-config-1' into 'main'
Set .gitlab-ci.yml to enable or configure SAST See merge request max/iotbutton!2
This commit is contained in:
@@ -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
|
image: python:3.8
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
before_script:
|
before_script:
|
||||||
- "pip install -U platformio"
|
- pip install -U platformio
|
||||||
|
|
||||||
main_mcu:
|
main_mcu:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cd firmware/main_mcu/
|
- cd firmware/main_mcu/
|
||||||
- cp src/config-example.h src/config.h
|
- cp src/config-example.h src/config.h
|
||||||
- pio run
|
- pio run
|
||||||
|
|
||||||
lowpower_mcu:
|
lowpower_mcu:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cd firmware/lowpower_mcu/
|
- cd firmware/lowpower_mcu/
|
||||||
- pio run
|
- pio run
|
||||||
|
sast:
|
||||||
|
stage: test
|
||||||
|
include:
|
||||||
|
- template: Security/SAST.gitlab-ci.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user