The image is for running snyk, snyk is installed in /app/ in case you need to customize the install before usage.
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: