security/rubygem-gitlab-secret_detection: update to 0.40.0
Required for gitlab 18.11
Changes: https://gitlab.com/gitlab-org/security-products/secret-detection/secret-detection-service/-/blob/main/CHANGELOG.md
(cherry picked from commit 4adf64cdfdc9a7c245afce7299b23d60937eda44)