[PR #201] [MERGED] fix(ci): use native staging approval gates #851

Closed
opened 2026-10-20 17:31:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/201
Author: @SpicyMarinara
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/stabilize-required-pr-checks


📝 Commits (5)

  • 893b4c4 fix(ci): stabilize required PR checks
  • a09c0c2 fix(ci): use native owner review gate
  • bc0a383 test(ci): harden triage topology checks
  • 3ffa85a test(ci): require trusted triage structure
  • c8c1ec2 test(ci): validate exact exemption step

📊 Changes

3 files changed (+83 additions, -114 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+3 -0)
📝 .github/workflows/pull-request-triage.yml (+11 -114)
➕ scripts/validate-pr-triage.mjs (+69 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors require a current Code Owner approval from SpicyMarinara; the Pasta-Devs Developers team has the staging pull-request bypass for internal work.

Linked issue

Closes #200

Why this change

Review submissions shared the ordinary pull-request triage workflow, producing repeated skipped or cancelled required contexts. The attempted workflow-only split also placed approval authorization in a PR-controlled pull_request_review workflow, which is not a trustworthy security boundary.

What changed

  • Keep workflow triage on trusted pull_request_target lifecycle events only.
  • Remove the custom owner-approval status and enforce outside-contributor approval with GitHub's native staging Code Owner ruleset.
  • Keep the Pasta-Devs Developers team as the native ruleset bypass; its membership currently matches the organization membership.
  • Make trusted-contributor template exemptions report explicit success.
  • Add a focused topology regression that rejects a PR-controlled review gate and verifies the SpicyMarinara CODEOWNERS rule.
  • Run the topology regression in catalog CI.

Package and security impact

  • Affected package IDs: none
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: the custom review-status workflow and its pull-request permission are removed
  • Restart, storage, update, or uninstall impact: none

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Focused topology, catalog-lane, full catalog-integrity, whitespace, and YAML syntax checks pass locally. The native Staging owner review for outside contributors ruleset is active, requires one current Code Owner approval, dismisses stale approvals, and grants only the Developers team the pull-request bypass. The obsolete Owner approval for outside contributors status was removed from the staging quality ruleset. Docker-based Actionlint was unavailable because the local Docker daemon is stopped; GitHub Actions remains the final workflow-semantic check.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Not applicable; this changes GitHub Actions workflow topology and repository ruleset enforcement only.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/201 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/2/2026 **Status:** ✅ Merged **Merged:** 8/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/stabilize-required-pr-checks` --- ### 📝 Commits (5) - [`893b4c4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/893b4c4470449ac2c52285b673a8537bed53729b) fix(ci): stabilize required PR checks - [`a09c0c2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a09c0c2f2a5c29ee33c14cdaf1575316c56ac631) fix(ci): use native owner review gate - [`bc0a383`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bc0a3832f3cc1ae3d8ea2dca877b2f534cd561fe) test(ci): harden triage topology checks - [`3ffa85a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3ffa85a780750013d458f56523fd760d1db43676) test(ci): require trusted triage structure - [`c8c1ec2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c8c1ec259af160865be37baa8a7c6b1711382d78) test(ci): validate exact exemption step ### 📊 Changes **3 files changed** (+83 additions, -114 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) 📝 `.github/workflows/pull-request-triage.yml` (+11 -114) ➕ `scripts/validate-pr-triage.mjs` (+69 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors require a current Code Owner approval from `SpicyMarinara`; the Pasta-Devs `Developers` team has the staging pull-request bypass for internal work. ## Linked issue Closes #200 ## Why this change Review submissions shared the ordinary pull-request triage workflow, producing repeated skipped or cancelled required contexts. The attempted workflow-only split also placed approval authorization in a PR-controlled `pull_request_review` workflow, which is not a trustworthy security boundary. ## What changed - Keep workflow triage on trusted `pull_request_target` lifecycle events only. - Remove the custom owner-approval status and enforce outside-contributor approval with GitHub's native staging Code Owner ruleset. - Keep the Pasta-Devs `Developers` team as the native ruleset bypass; its membership currently matches the organization membership. - Make trusted-contributor template exemptions report explicit success. - Add a focused topology regression that rejects a PR-controlled review gate and verifies the `SpicyMarinara` CODEOWNERS rule. - Run the topology regression in catalog CI. ## Package and security impact - Affected package IDs: none - Engine compatibility impact: none - New or changed permissions/entrypoints: the custom review-status workflow and its pull-request permission are removed - Restart, storage, update, or uninstall impact: none ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Focused topology, catalog-lane, full catalog-integrity, whitespace, and YAML syntax checks pass locally. The native `Staging owner review for outside contributors` ruleset is active, requires one current Code Owner approval, dismisses stale approvals, and grants only the `Developers` team the pull-request bypass. The obsolete `Owner approval for outside contributors` status was removed from the staging quality ruleset. Docker-based Actionlint was unavailable because the local Docker daemon is stopped; GitHub Actions remains the final workflow-semantic check. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not applicable; this changes GitHub Actions workflow topology and repository ruleset enforcement only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:31:38 +07:00
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#851
No description provided.