File tree Expand file tree Collapse file tree
guards/github-guard/rust-guard/src/labels Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -388,9 +388,9 @@ pub fn apply_tool_labels(
388388 // Lists users with access to the repository; reveals who holds write/admin rights.
389389 // S = private policy scope — collaborator/permission information is access-controlled
390390 // even for public repositories.
391- // I = writer (GitHub-controlled repository access metadata )
391+ // I = reader (access-sensitive metadata should not directly authorize writes )
392392 secrecy = policy_private_scope_label ( & owner, & repo, repo_id, ctx) ;
393- integrity = writer_integrity ( repo_id, ctx) ;
393+ integrity = reader_integrity ( repo_id, ctx) ;
394394 }
395395
396396 // === Content Access ===
@@ -939,11 +939,11 @@ mod tests {
939939 & ctx,
940940 ) ;
941941 let _ = secrecy; // secrecy inherits from repo visibility (backend unavailable in tests)
942- let expected_integrity = super :: writer_integrity ( "octocat/hello-world" , & ctx) ;
942+ let expected_integrity = super :: reader_integrity ( "octocat/hello-world" , & ctx) ;
943943 assert_eq ! (
944944 integrity,
945945 expected_integrity,
946- "list_repository_collaborators must produce writer -level integrity"
946+ "list_repository_collaborators must produce reader -level integrity"
947947 ) ;
948948 }
949949}
You can’t perform that action at this time.
0 commit comments