Add header to include repository URL in GitGuardian multiscan requests

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do and why?

This MR updates the git_guardian/client.rb logic to include a new header, GGshield-Repository-URL, when calling GitGuardian's API at https://api.gitguardian.com/v1/multiscan. This header provides the current repository URL, which is essential for enabling a new feature that allows clients to set repository-scoped filepath exclusion rules (e.g., ignoring all secrets found in .txt files within the foo repository).

Edited by GG Tools

Merge request reports

Loading