From 570a73152235e83f8a4fa955b8baaacf1e6ea2a4 Mon Sep 17 00:00:00 2001 From: flifloo Date: Wed, 2 Feb 2022 18:28:14 +0100 Subject: [PATCH] Add GitLab CI --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ .semgrepignore | 26 ++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 .semgrepignore diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..efa0155 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +include: + - template: Security/SAST.gitlab-ci.yml + +image: node:latest + +cache: + paths: + - node_modules/ + +build: + stage: build + script: + - apt-get update && apt-get install -y python + - npm install + - npm run build + +sast: + stage: test + artifacts: + name: sast + paths: + - gl-sast-report.json + reports: + sast: gl-sast-report.json + when: always diff --git a/.semgrepignore b/.semgrepignore new file mode 100644 index 0000000..31d5edc --- /dev/null +++ b/.semgrepignore @@ -0,0 +1,26 @@ +# Ignore git items +.gitignore +.git/ +:include .gitignore + +# Common large paths +node_modules/ +build/ +dist/ +vendor/ +.env/ +.venv/ +.tox/ +*.min.js + +# Common test paths +test/ +tests/ +*_test.go + +# Semgrep rules folder +.semgrep + +# Semgrep-action log folder +.semgrep_logs/ +