security/rubygem-gitlab-secret_detection: update to 0.31.0
Required for gitlab 18.1
Changes: https://gitlab.com/gitlab-org/security-products/secret-detection/secret-detection-service/-/blob/main/CHANGELOG.md
(cherry picked from commit 110c42c1288d5dc231926f75123a1f2c698cc0b6)