diff options
author | lns <matzeton@googlemail.com> | 2018-06-13 20:38:25 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2018-06-13 20:41:27 +0200 |
commit | 09e932e4cbcf6d4ca2039046a1c92ed579b0bdca (patch) | |
tree | 9bd14f413cc9befe4a41861f4a6749f988df5899 | |
parent | f2f11e477a489ac25a4c4be064eddc26fc9d677c (diff) |
- initial gitlab yaml
Signed-off-by: lns <matzeton@googlemail.com>
-rw-r--r-- | .gitlab-ci.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..94a0d0c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +stages: + - build + +build: + script: + - apt-get update -qq && apt-get install -y -qq coreutils make autoconf automake gcc pkg-config libseccomp-dev libssh-dev valgrind + - ./autogen.sh + - ./configure + - make + artifacts: + - paths: + - ./src/potd + +sast: + image: docker:stable + variables: + DOCKER_DRIVER: overlay2 + allow_failure: true + services: + - docker:stable-dind + script: + - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') + - docker run + --env SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}" + --volume "$PWD:/code" + --volume /var/run/docker.sock:/var/run/docker.sock + "registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code + artifacts: + paths: [gl-sast-report.json] |