Skip to content

private repo 会出现 author_association 判定失败#142

Merged
Terry-Mao merged 1 commit into
mainfrom
fix/private-repo-author-association-141
May 20, 2026
Merged

private repo 会出现 author_association 判定失败#142
Terry-Mao merged 1 commit into
mainfrom
fix/private-repo-author-association-141

Conversation

@Terry-Mao
Copy link
Copy Markdown
Owner

Summary

  • Allow CONTRIBUTOR triggers in private repos when the actor has write, maintain, or admin collaborator permission.
  • Expose private-repo and repository-permission context in the PR comment workflow payload.
  • Move workflow/script unittest coverage under .github/tests and update docs/codeowners for the new location.

Validation

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s .github/tests

Fixes #141

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

No blocking findings. The private-repo CONTRIBUTOR authorization path is scoped to private base repositories, checks write/maintain/admin collaborator permission before enabling the response flow, and has focused unit coverage for public skip, write authorization, read denial, and lookup failure. No security findings identified.

@Terry-Mao Terry-Mao merged commit 1d89f1c into main May 20, 2026
2 checks passed
@Terry-Mao Terry-Mao deleted the fix/private-repo-author-association-141 branch May 20, 2026 17:04
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.

private repo 会出现 author_association 判定失败

1 participant