Skip to content

fix: reject cross-repo linked issue references in mirror path (#1243)#1247

Open
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1243-mirror-linked-issue-repo
Open

fix: reject cross-repo linked issue references in mirror path (#1243)#1247
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1243-mirror-linked-issue-repo

Conversation

@alpurkan17
Copy link
Copy Markdown
Contributor

Summary

Add repository_full_name field to MirrorLinkedIssue and a cross-repo gate in _is_valid_linked_issue to reject linked issues that belong to a different repo than the PR.

PR #1038 fixed this for the legacy path; this ports the same check to the mirror path.

Validation

  • ruff check + ruff format pass
  • 9 lines added, no behavior change for same-repo linked issues

Closes #1243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: mirror-path _is_valid_linked_issue accepts cross-repo Closes references

1 participant