Avoid possible infinite loops in Container Scanning
In https://gitlab.com/gitlab-org/gitlab-ci-yml/blob/master/Auto-DevOps.gitlab-ci.yml#L318 we have a possible infinite loop. We should try to avoid it and limit the retries to a reasonable value.
Problems with CI/CD runners could lead to blocked pipelines because of that, see e.g. https://staging.gitlab.com/bikebilly/new-spring/-/jobs/35567092.
I suggest to do 10 retries every 10 seconds. If it is still unsuccessful, give up and end the job.