Repository navigation
Group author-integrity resource identifiers into AuthoredResource - #16756
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟡 Changes recommended
The tests lack an untrusted CONTRIBUTOR case verifying that a failed collaborator lookup preserves the reader_integrity association floor.
1 open issue
What changed in this PR
Simplifies author-integrity resolution in the Rust GitHub guard by grouping resource identifiers into AuthoredResource, addressing #16697 while preserving existing behavior.
Changes:
- Reduce the helper from nine arguments to five and remove the Clippy suppression.
- Update issue and pull-request callers to use named resource fields.
- Preserve blocked-author coverage and add association-floor, trusted-author, and baseline cases.
| File | Description |
|---|---|
guards/github-guard/rust-guard/src/labels/tool_rules.rs |
Add AuthoredResource, update callers, and extend integrity tests. |
Review effort: Max (adaptive)
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
@copilot merge main and resolve conflicts |
…oup-resource-identifiers # Conflicts: # guards/github-guard/rust-guard/src/labels/tool_rules.rs Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged |
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE No write leaked through mcpg in any surface tested. The MCP backend (launched via gh-aw's
|

resolve_author_integritytakes nine positional arguments, including interchangeable resource strings, and suppresses Clippy’s argument-count warning.AuthoredResourcefields for owner, repository, repository ID, tool label, and resource number. Reduce the helper to five arguments and remove the suppression.