Using wildcards to specify more than one repo

Is there is a way to specify more than one repository from GitLab’s Container Registry, when adding registry for scanning? I am not sure if Gitlab supports using wildcards to specify repos, since when I am using wildcard I am getting following error:

Registry Scan: failed to retrieve repositories info, request: &{Tag:<nil> Spec:2-registry.-registry.-devsecops-* Type:1 ScanID:115}. Error: failed to to query https://registry./v2/_catalog 401 Unauthorized-{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"registry.","Class":"","Name":"catalog","Action":"*"}]}]}

Hi, @shavkat. Welcome to the forum!

Do you mean running container scanning on multiple images?

We have an Epic on our backlog to make this simpler to configure: Better support scanning of multiple container images (&3139) · Epics · GitLab.org · GitLab.

Until then, you can use parallel:matrix to create multiple jobs for all the images that need to be scanned.

As an example, here’s the container_scanning section for the container scanning analyzer itself. Since we create multiple images during the build (Trivy, Grype and UBI versions for each scanner), this configuration allows us to scan all the images.