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
stages:
- linting
- testing
- docs
- test
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
before_script:
- python --version
- pip install -r requirements.txt
- python --version # For debugging
- pip install -r requirements.txt # install dependencies from file
PEP8:
stage: linting
script:
......@@ -27,7 +22,7 @@ Pylint:
stage: linting
script:
- 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:
stage: testing
tags:
......@@ -38,7 +33,7 @@ test:
pages:
stage: docs
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
- make html
- mv build/html/ ../public
......@@ -54,3 +49,10 @@ sast:
stage: test
include:
- 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