Skip to content
Snippets Groups Projects
Commit f023a9d3 authored by Mayr, Hannes's avatar Mayr, Hannes
Browse files

Include SAST config.

parent b0514470
No related branches found
No related tags found
1 merge request!31Set sast config 1
Pipeline #812514 waiting for manual action
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
image: python:latest image: python:latest
stages: stages:
- linting - linting
- testing - testing
- docs - docs
- test - test
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
before_script: before_script:
- python --version - python --version # For debugging
- pip install -r requirements.txt - pip install -r requirements.txt # install dependencies from file
PEP8: PEP8:
stage: linting stage: linting
script: script:
...@@ -27,7 +22,7 @@ Pylint: ...@@ -27,7 +22,7 @@ Pylint:
stage: linting stage: linting
script: script:
- pip install pylint - pip install pylint
- find . -type f -name '*.py' | xargs pylint -rn --rcfile='plotid/.pylintrc' - find . -type f -name '*.py' | xargs pylint -rn --rcfile='plotid/.pylintrc' # Find all python files and check the code with pylint
test: test:
stage: testing stage: testing
tags: tags:
...@@ -38,7 +33,7 @@ test: ...@@ -38,7 +33,7 @@ test:
pages: pages:
stage: docs stage: docs
script: script:
- pip install -U sphinx sphinx-autoapi sphinx_rtd_theme myst-parser - pip install -U sphinx sphinx-autoapi sphinx_rtd_theme myst-parser # sphinx_panels
- cd docs - cd docs
- make html - make html
- mv build/html/ ../public - mv build/html/ ../public
...@@ -54,3 +49,10 @@ sast: ...@@ -54,3 +49,10 @@ sast:
stage: test stage: test
include: include:
- template: Security/SAST.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment