[GH-ISSUE #5510] [Security] Harden v2.4.4 release and CodeQL gates #3060

Closed
opened 2026-10-21 05:59:17 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5510

Originally assigned to: @SpicyMarinara on GitHub.

Problem

The current staging release candidate has no open GitHub security alerts and passes the focused security regression lane, but two release-process gaps remain:

  • release-producing workflows do not all fail when a vX.Y.Z tag disagrees with the canonical root package version;
  • CodeQL runs for staging pull requests but its language jobs are not required by the staging ruleset, and main-promotion pull requests are not included in the CodeQL pull-request trigger.

A mislabeled tag can publish artifacts under the wrong version, and a security scan that is advisory rather than required can be bypassed accidentally.

Scope

  • Add one small shared release-tag/version guard and reuse it in tag-driven release workflows.
  • Run CodeQL for pull requests targeting both staging and main.
  • Require the existing CodeQL job contexts in repository rulesets.
  • Keep all local-first imports, exports, extensions, models, and existing application features unchanged.
  • Record exact audit and regression evidence for the v2.4.4 staging head.

Acceptance

  • Correct v2.4.4 input passes and malformed or mismatched tags fail.
  • Existing release workflows call the same guard before publishing/building versioned artifacts.
  • Required security checks and CodeRabbit pass before merge.
  • No user-facing capability is disabled or narrowed.
Originally created by @SpicyMarinara on GitHub (Aug 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5510 Originally assigned to: @SpicyMarinara on GitHub. ## Problem The current `staging` release candidate has no open GitHub security alerts and passes the focused security regression lane, but two release-process gaps remain: - release-producing workflows do not all fail when a `vX.Y.Z` tag disagrees with the canonical root package version; - CodeQL runs for staging pull requests but its language jobs are not required by the staging ruleset, and main-promotion pull requests are not included in the CodeQL pull-request trigger. A mislabeled tag can publish artifacts under the wrong version, and a security scan that is advisory rather than required can be bypassed accidentally. ## Scope - Add one small shared release-tag/version guard and reuse it in tag-driven release workflows. - Run CodeQL for pull requests targeting both `staging` and `main`. - Require the existing CodeQL job contexts in repository rulesets. - Keep all local-first imports, exports, extensions, models, and existing application features unchanged. - Record exact audit and regression evidence for the v2.4.4 staging head. ## Acceptance - Correct `v2.4.4` input passes and malformed or mismatched tags fail. - Existing release workflows call the same guard before publishing/building versioned artifacts. - Required security checks and CodeRabbit pass before merge. - No user-facing capability is disabled or narrowed.
bsakaguchi 2026-10-21 05:59:17 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 25, 2026):

Completed by #5511 and merged to staging at 3bcb453cc9. Release-tag injection/version guards, CodeQL-required rulesets, dependency/security settings, and release-candidate validation are in place.

<!-- gh-comment-id:5409294468 --> @SpicyMarinara commented on GitHub (Aug 25, 2026): Completed by #5511 and merged to staging at 3bcb453cc94291f8ecc50a592057831a367a749f. Release-tag injection/version guards, CodeQL-required rulesets, dependency/security settings, and release-candidate validation are in place.
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#3060
No description provided.