From 96a08ed8ede9fc41f5a3ae0966034937745aaae0 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Fri, 8 Aug 2025 15:11:44 -0700 Subject: [PATCH] GitLab: include nested subgroup projects when enumerating group repositories --- src/gitlab.rs | 2 +- tests/int_rules_no_validated_findings.rs | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/gitlab.rs b/src/gitlab.rs index dc0915a..c0a85e2 100644 --- a/src/gitlab.rs +++ b/src/gitlab.rs @@ -103,7 +103,7 @@ pub async fn enumerate_repo_urls( // this doesn’t set any owned() or membership() flags on the builder, which in GitLab’s API defaults to "all visible repos" } } - + // Extract the builder to a separate variable to avoid borrowing a temporary, // allowing us to modify its fields before building the endpoint. let projects_ep = builder.build()?; diff --git a/tests/int_rules_no_validated_findings.rs b/tests/int_rules_no_validated_findings.rs index a6d171d..01a6ad9 100644 --- a/tests/int_rules_no_validated_findings.rs +++ b/tests/int_rules_no_validated_findings.rs @@ -61,11 +61,7 @@ fn scan_rules_has_no_validated_findings() -> Result<()> { } // Fail only on genuinely validated secrets - assert_ne!( - &status, - "active credential", - "Validated finding detected in rule {rule_id}" - ); + assert_ne!(&status, "active credential", "Validated finding detected in rule {rule_id}"); } Ok(())