Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions guards/github-guard/rust-guard/src/labels/tool_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ pub fn apply_tool_labels(
// Lists users with access to the repository; reveals who holds write/admin rights.
// S = private policy scope — collaborator/permission information is access-controlled
// even for public repositories.
// I = writer (GitHub-controlled repository access metadata)
// I = reader (access-sensitive metadata should not directly authorize writes)
secrecy = policy_private_scope_label(&owner, &repo, repo_id, ctx);
integrity = writer_integrity(repo_id, ctx);
integrity = reader_integrity(repo_id, ctx);
}

// === Content Access ===
Expand Down Expand Up @@ -939,11 +939,11 @@ mod tests {
&ctx,
);
let _ = secrecy; // secrecy inherits from repo visibility (backend unavailable in tests)
let expected_integrity = super::writer_integrity("octocat/hello-world", &ctx);
let expected_integrity = super::reader_integrity("octocat/hello-world", &ctx);
assert_eq!(
integrity,
expected_integrity,
"list_repository_collaborators must produce writer-level integrity"
"list_repository_collaborators must produce reader-level integrity"
);
}
}
Loading