[PR #5511] [MERGED] [codex] harden v2.4.4 release security gates #6791

Closed
opened 2026-10-23 04:13:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5511
Author: @SpicyMarinara
Created: 8/25/2026
Status: ✅ Merged
Merged: 8/25/2026
Merged by: @SpicyMarinara

Base: staging ← Head: security/5510-release-gates


📝 Commits (3)

  • fd8b999 fix(security): harden release gates
  • addfd41 fix(security): neutralize release tag inputs
  • 4f5522e test(security): prove release gate ordering

📊 Changes

14 files changed (+140 additions, -30 deletions)

View changed files

📝 .github/workflows/build-apk.yml (+1 -10)
📝 .github/workflows/build-container-lite.yml (+10 -0)
📝 .github/workflows/build-container.yml (+10 -0)
📝 .github/workflows/build-windows-installer.yml (+5 -5)
📝 .github/workflows/codeql.yml (+1 -1)
📝 .github/workflows/publish-github-release.yml (+6 -3)
📝 .github/workflows/pull-request-checks.yml (+3 -0)
📝 CHANGELOG.md (+1 -0)
📝 SECURITY.md (+2 -0)
📝 package.json (+2 -0)
➕ scripts/check-release-tag.mjs (+18 -0)
📝 scripts/regressions/android-local-auth.regression.ts (+9 -3)
➕ scripts/regressions/release-tag-version.regression.mjs (+67 -0)
📝 scripts/validate-pr-triage.mjs (+5 -8)

📄 Description

Important

This targets staging. No release tag or main promotion is created by this PR.

Linked issue

Closes #5510

Why this change

Official release artifacts must not accept an untrusted or mismatched tag, and both protected promotion targets must retain the same CodeQL coverage.

What changed

  • Added one tested SemVer/tag-to-package-version guard for GitHub releases, Windows, Android, and full/lite containers.
  • Passed release tag inputs through step environment variables before shell evaluation.
  • Disabled persisted checkout credentials in release jobs.
  • Added CodeQL pull-request coverage for staging and main.
  • Updated repository rulesets to require Analyze actions and Analyze javascript-typescript on Engine staging and main.
  • Enabled Dependabot security updates and secret-scanning push protection.

No application runtime, import/export path, extension permission, or local-first behavior changes.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Automated evidence: pnpm check, pnpm version:check, pnpm credits:check, pnpm audit --audit-level low, pnpm regression:security, pnpm regression:release, pnpm guard:installer-artifacts, pull-request gate validation, both CodeQL analyses, and the hosted container build all passed. Malformed and mismatched tags were confirmed rejected. No UI or application runtime behavior changed, so browser verification is not applicable.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

SECURITY.md and CHANGELOG.md are updated. No version bump or translated user documentation change is included.

UI evidence (if applicable)

Not applicable; this is release-workflow and repository-protection hardening.

Summary by CodeRabbit

  • Bug Fixes

    • Release workflows now validate tags consistently and ensure they match the application version before publishing artifacts.
    • Improved protection by preventing checkout credentials from persisting in build and release workflows.
  • Tests

    • Added regression coverage for valid, invalid, prerelease, and mismatched release tags.
    • Release checks now run automatically with pull request validation.
  • Security

    • CodeQL analysis now covers pull requests targeting both main and staging.
  • Documentation

    • Updated the changelog and security guidance with release-validation and analysis coverage details.

🔄 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-Engine/pull/5511 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/25/2026 **Status:** ✅ Merged **Merged:** 8/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `security/5510-release-gates` --- ### 📝 Commits (3) - [`fd8b999`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fd8b99908c8b493c39b892ac0c6b63329a599bf7) fix(security): harden release gates - [`addfd41`](https://github.com/Pasta-Devs/Marinara-Engine/commit/addfd412541fd220c22a7fd7ad5364045c2eed98) fix(security): neutralize release tag inputs - [`4f5522e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4f5522ebb966957b8fa7f5b8ff17c6b24efe5e1c) test(security): prove release gate ordering ### 📊 Changes **14 files changed** (+140 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build-apk.yml` (+1 -10) 📝 `.github/workflows/build-container-lite.yml` (+10 -0) 📝 `.github/workflows/build-container.yml` (+10 -0) 📝 `.github/workflows/build-windows-installer.yml` (+5 -5) 📝 `.github/workflows/codeql.yml` (+1 -1) 📝 `.github/workflows/publish-github-release.yml` (+6 -3) 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) 📝 `CHANGELOG.md` (+1 -0) 📝 `SECURITY.md` (+2 -0) 📝 `package.json` (+2 -0) ➕ `scripts/check-release-tag.mjs` (+18 -0) 📝 `scripts/regressions/android-local-auth.regression.ts` (+9 -3) ➕ `scripts/regressions/release-tag-version.regression.mjs` (+67 -0) 📝 `scripts/validate-pr-triage.mjs` (+5 -8) </details> ### 📄 Description > [!IMPORTANT] > This targets staging. No release tag or main promotion is created by this PR. ## Linked issue Closes #5510 ## Why this change Official release artifacts must not accept an untrusted or mismatched tag, and both protected promotion targets must retain the same CodeQL coverage. ## What changed - Added one tested SemVer/tag-to-package-version guard for GitHub releases, Windows, Android, and full/lite containers. - Passed release tag inputs through step environment variables before shell evaluation. - Disabled persisted checkout credentials in release jobs. - Added CodeQL pull-request coverage for staging and main. - Updated repository rulesets to require Analyze actions and Analyze javascript-typescript on Engine staging and main. - Enabled Dependabot security updates and secret-scanning push protection. No application runtime, import/export path, extension permission, or local-first behavior changes. ## Validation - [ ] pnpm check passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed CONTRIBUTING.md ### Manual verification notes Automated evidence: pnpm check, pnpm version:check, pnpm credits:check, pnpm audit --audit-level low, pnpm regression:security, pnpm regression:release, pnpm guard:installer-artifacts, pull-request gate validation, both CodeQL analyses, and the hosted container build all passed. Malformed and mismatched tags were confirmed rejected. No UI or application runtime behavior changed, so browser verification is not applicable. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) SECURITY.md and CHANGELOG.md are updated. No version bump or translated user documentation change is included. ## UI evidence (if applicable) Not applicable; this is release-workflow and repository-protection hardening. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Release workflows now validate tags consistently and ensure they match the application version before publishing artifacts. * Improved protection by preventing checkout credentials from persisting in build and release workflows. * **Tests** * Added regression coverage for valid, invalid, prerelease, and mismatched release tags. * Release checks now run automatically with pull request validation. * **Security** * CodeQL analysis now covers pull requests targeting both `main` and `staging`. * **Documentation** * Updated the changelog and security guidance with release-validation and analysis coverage details. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:13:46 +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-Engine#6791
No description provided.