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 test --docker pipelinecomponents/php-linter:latest --file=Dockerfile
For this example:
- pipelinecomponents/php-linter:latest is the container to scan, and should be localy available
- SNYK_TOKEN should be set as a secret variable in gitlab