Skip to content

Commit f0f232d

Browse files
authored
fix(guard): set collaborator listing to reader integrity
1 parent e9143e7 commit f0f232d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

guards/github-guard/rust-guard/src/labels/tool_rules.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)