trufflehog/pkg/sources/gitlab
Cody Rose 1155ee2736
Implement Gitlab source validation (#1765)
This PR implements validation of Gitlab source configuration.

I was hoping to be able to unify more of the implementation of Validate and Chunks, but there was more divergence than I expected. Specifically, Chunks handles a fair number of Gitlab errors that aren't configuration errors (e.g. "Gitlab returned a repo with an unparseable URL"). Accommodating these in the Validate code path felt wrong, and I wasn't able to create a common code path that could accommodate both Validate and Chunks without looking awful.
2023-09-13 11:51:12 -04:00
..
gitlab.go Implement Gitlab source validation (#1765) 2023-09-13 11:51:12 -04:00
gitlab_test.go Implement Gitlab source validation (#1765) 2023-09-13 11:51:12 -04:00