Repository navigation
Add DIFC guard coverage for Copilot Automation tools - #16754
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
Automation reads lack user-private secrecy labels, while updates bypass read authorization, allowing private definitions and existing configuration to be exposed without proper clearance.
2 open issues
What changed in this PR
Extends the Rust GitHub guard’s information-flow controls to cover all 11 Copilot Automation tools.
Changes:
- Adds repository-visibility secrecy, reader/writer integrity, and optional automation IDs in resource descriptions.
- Explicitly registers four automation mutations.
- Adds regression tests for visibility, operation classification, and optional IDs.
| File | Description |
|---|---|
guards/github-guard/rust-guard/src/tools.rs |
Registers automation mutations and adds classification tests. |
guards/github-guard/rust-guard/src/labels/tool_rules.rs |
Adds automation labeling rules, descriptions, and visibility tests. |
guards/github-guard/rust-guard/src/labels/constants.rs |
Defines shared names for the 11 automation tools. |
Review effort: Max (adaptive)
| | tool_names::UPDATE_AUTOMATION | ||
| | tool_names::DELETE_AUTOMATION | ||
| | tool_names::RUN_AUTOMATION => { | ||
| secrecy = apply_repo_visibility_secrecy(&owner, &repo, repo_id, secrecy, ctx); |
| tool_names::RUN_AUTOMATION, | ||
| tool_names::STAR_REPOSITORY, | ||
| tool_names::UNSTAR_REPOSITORY, | ||
| tool_names::UPDATE_AUTOMATION, |
|
@copilot address review feedback, merge main, and resolve conflicts |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged |
| | tool_names::RUN_AUTOMATION => { | ||
| secrecy = apply_repo_visibility_secrecy(&owner, &repo, repo_id, secrecy, ctx); | ||
| // These operations can return personal definitions, even in public repositories. | ||
| if matches!( |
Lock mcpg Read-Only Stress - defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE Part B: all 6 targeted write tools were absent from the github CLI exposed catalog (23 read-only tools only), so refusal only proves backend/toolset config, not independent gateway-level enforcement. Parts D/E: gh auth status showed no authenticated host, so proxied CLI/GraphQL write-blocking could not be exercised this run. No write leaked in any part; all reads succeeded.
|

Eleven Copilot Automation tools lack explicit DIFC rules, and
run_automationis missing from mutation classification.create_orupdate_fallback.