How to use DAST Runner Validation template

When I try to use site profile validation in DAST On-demand scan, it site validation fails. Then I came across the ‘DAST-Runner-Validation.gitlab-ci.yml’ template which I think can be used to solve my site validation issue. But I am not able to find an example of how to use this template. Please direct me to an example of how I can use this template or any other ways to solve site profile validation failure.