Add GitLab CI

This commit is contained in:
Ethanell 2022-02-02 18:28:14 +01:00
parent b761c5ca0e
commit 570a731522
2 changed files with 51 additions and 0 deletions

25
.gitlab-ci.yml Normal file
View file

@ -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

26
.semgrepignore Normal file
View file

@ -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/