The image is for running snyk, snyk is installed in /app/ in case you need to customize the install before usage.
The image is based on node:10.14-alpine
This requires a local available docker service like dind
or a shared docker socket, docker is installed in this container.
snyk:
stage: linting
variables:
SNYK_TOKEN: my-secret-snyk-token
image: registry.gitlab.com/pipeline-components/snyk:latest
script:
- snyk test --docker pipelinecomponents/php-linter:latest --file=Dockerfile
For this example: