Skip to content

Fix IFC private repository labels#2695

Open
RossTarrant wants to merge 2 commits into
mainfrom
rosstarrant/fix-ifc-private-labels
Open

Fix IFC private repository labels#2695
RossTarrant wants to merge 2 commits into
mainfrom
rosstarrant/fix-ifc-private-labels

Conversation

@RossTarrant

Copy link
Copy Markdown
Contributor

Summary

  • classify private repository issue/list/search results as private-trusted instead of private-untrusted
  • update search-related IFC comments and expectations for joined private results
  • add focused IFC unit coverage for list/search issue labels

Tests

  • script/lint && script/test
  • go test -race ./pkg/ifc ./pkg/github

Copilot AI review requested due to automatic review settings June 15, 2026 15:24
@RossTarrant RossTarrant requested a review from a team as a code owner June 15, 2026 15:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the IFC (Information Flow Control) labeling behavior for issue list/search (and other multi-repo search-style outputs) so that private repository results are labeled private-trusted rather than private-untrusted, and adjusts related documentation/comments plus unit tests accordingly.

Changes:

  • Update pkg/ifc label helpers to return PrivateTrusted() for private issue list/search results.
  • Refresh IFC-related comments in search/list code paths to reflect the new private-trusted semantics.
  • Add/adjust unit tests to assert the updated IFC integrity/confidentiality expectations.
Show a summary per file
File Description
pkg/ifc/ifc.go Changes private issue list/search label functions to return PrivateTrusted() and updates associated IFC join documentation.
pkg/ifc/ifc_test.go Adds focused unit coverage for list/search label integrity/confidentiality outcomes.
pkg/github/search.go Updates inline comments describing IFC joining behavior for repository/code/commit searches.
pkg/github/search_test.go Updates IFC insiders-mode expectations for search_repositories when private repos are present.
pkg/github/repositories.go Updates inline comments for joined IFC labeling in starred-repo listing.
pkg/github/issues_test.go Updates IFC insiders-mode expectations for issue read/search/list flows involving private repositories.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 7

Comment thread pkg/ifc/ifc.go
Comment thread pkg/ifc/ifc.go
Comment thread pkg/ifc/ifc_test.go Outdated
Comment thread pkg/github/search_test.go
Comment thread pkg/github/issues_test.go Outdated
Comment thread pkg/github/issues_test.go Outdated
Comment thread pkg/github/issues_test.go
RossTarrant and others added 2 commits June 15, 2026 17:01
Keep joined search integrity conservative for mixed public and private results, and split user-authored repo content from list_issues private-trusted labeling.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@RossTarrant RossTarrant force-pushed the rosstarrant/fix-ifc-private-labels branch from 782c706 to c34ff37 Compare June 15, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants