Container-Scanning.gitlab-ci.yml template is not working for repository mirror
I am trying to use the default container scanning template with the GitHub repository mirror, the test job stage is not picking. when I will run the pipeline with the below code.
variables:
DOCKER_DRIVER: overlay2
stages:
- build
- test
build:
image: docker:stable
stage: build
services:
- docker:19.03.12-dind
variables:
IMAGE: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
script:
- docker info
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t $IMAGE .
- docker push $IMAGE
include:
- template: Container-Scanning.gitlab-ci.yml`
but the same code is working on a normal GitLab repository.
Can you please help on this
Edited by Nandapani Thota