[GH-ISSUE #120] Verify Pasta-Devs organization membership in the owner-approval gate #57

Closed
opened 2026-10-20 17:23:54 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/120

Originally assigned to: @SpicyMarinara on GitHub.

The staging owner-approval workflow must distinguish active Pasta-Devs organization members and owners from every author outside the organization on both pull_request_target and pull_request_review events.

PR #121 fetched the canonical pull request record before reading author_association, but that field can still reject an active organization member. Promansis is an active Pasta-Devs Member, yet the corresponding Marinara Engine gate demonstrated that author_association is not a reliable organization-membership authority.

Expected policy:

  • Active Pasta-Devs organization role Member or Owner: no separate owner approval.
  • Everyone outside the Pasta-Devs organization—including outside collaborators, first-time contributors, and ordinary external contributors—must have an approving review from SpicyMarinara for the current PR head commit.
  • Missing or unreadable organization-membership credentials must fail closed.
  • The policy documentation and security guidance must describe organization roles, not a nonexistent developers team.

Use the organization membership API with a read-only membership credential, keep the explicit SpicyMarinara owner bootstrap, and promote the correction through staging to main because pull_request_target executes the default-branch workflow.

Originally created by @SpicyMarinara on GitHub (Jul 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/120 Originally assigned to: @SpicyMarinara on GitHub. The staging owner-approval workflow must distinguish active Pasta-Devs organization members and owners from every author outside the organization on both `pull_request_target` and `pull_request_review` events. PR #121 fetched the canonical pull request record before reading `author_association`, but that field can still reject an active organization member. Promansis is an active Pasta-Devs `Member`, yet the corresponding Marinara Engine gate demonstrated that `author_association` is not a reliable organization-membership authority. Expected policy: - Active Pasta-Devs organization role `Member` or `Owner`: no separate owner approval. - Everyone outside the Pasta-Devs organization—including outside collaborators, first-time contributors, and ordinary external contributors—must have an approving review from `SpicyMarinara` for the current PR head commit. - Missing or unreadable organization-membership credentials must fail closed. - The policy documentation and security guidance must describe organization roles, not a nonexistent `developers` team. Use the organization membership API with a read-only membership credential, keep the explicit `SpicyMarinara` owner bootstrap, and promote the correction through `staging` to `main` because `pull_request_target` executes the default-branch workflow.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 29, 2026):

Fixed in staging by #121 and published to main by #119. The owner-approval gate now fetches canonical PR membership from the REST API before deciding whether owner approval is required.

<!-- gh-comment-id:5117659490 --> @SpicyMarinara commented on GitHub (Jul 29, 2026): Fixed in staging by #121 and published to main by #119. The owner-approval gate now fetches canonical PR membership from the REST API before deciding whether owner approval is required.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#57
No description provided.