Commit 8dda5a09 authored by Christopher Wiedey's avatar Christopher Wiedey
Browse files

Configure SAST in `.gitlab-ci.yml`, creating this file if it does not already exist

parent 0c7587d2
Pipeline #99807 passed with stage
in 19 seconds
# 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
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables
stages:
- test
- deploy
- test
- deploy
jest:
stage: test
image: node:latest
before_script:
- npm ci --dev
- npm ci --dev
script:
- npm test
- npm test
artifacts:
reports:
cobertura: ./coverage/cobertura-coverage.xml
cobertura: "./coverage/cobertura-coverage.xml"
deploy:
stage: deploy
needs: ["jest"]
needs:
- jest
only:
- master
image: node:latest
before_script:
- npm adduser https://zivgitlab.wwu.io
- npm config set //zivgitlab.wwu.io/:_authToken ${CI_JOB_TOKEN}
- npm adduser https://zivgitlab.wwu.io
- npm config set //zivgitlab.wwu.io/:_authToken ${CI_JOB_TOKEN}
script:
- npm publish
\ No newline at end of file
- npm publish
sast:
stage: test
include:
- template: Security/SAST.gitlab-ci.yml
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment