summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/templates/Code-Quality.gitlab-ci.yml
blob: 10b25af904f4f2b19d7d71fc60d35f31dadd283b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
code_quality:
  image: docker:stable
  allow_failure: true
  services:
    - docker:stable-dind
  variables:
    DOCKER_DRIVER: overlay2
  script:
    - docker run
        --env SOURCE_CODE="$PWD"
        --volume "$PWD":/code
        --volume /var/run/docker.sock:/var/run/docker.sock
        "registry.gitlab.com/gitlab-org/security-products/codequality:11-8-stable" /code
  artifacts:
    reports:
      codequality: gl-code-quality-report.json
    expire_in: 1 week