Scala is not detected by dependency scanning when dind is disabled

Summary

Dependency Scanning does not detect scala projects when DS_DISABLE_DIND is set to true.

Steps to reproduce

  1. add .gitlab-ci.yml to scala project
  2. enable dependency scanning enabled
  3. DS_DISABLE_DIND set to true

When this pipeline executes, DS will run but not find a match.

Example Project

https://gitlab.com/gitlab-org/security-products/tests/scala-sbt/

What is the current bug behavior?

Dependency scanning job reports that no matching projects were found.

What is the expected correct behavior?

Dependency scanning job should execute for this project and generate a report.

Implementation plan

Update Dependency Scanning ci template to detect scala when running in no dind mode.