Use trivy version 0.52.2 for dependency scanning
This MR downgrades trivy
used for dependency scanning (see !1527 (merged)) to version 0.52.2, which is the last version to write CycloneDX JSON files using schema version 1.5, as required by gitlab (as of version 17.5).