mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4981] [MERGED] fix: close actionable code scanning findings #6566
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6566
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4981
Author: @SpicyMarinara
Created: 8/13/2026
Status: ✅ Merged
Merged: 8/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/code-scanning-cleanup📝 Commits (7)
e5068a3fix: harden code scanning edge cases05e4610fix: linearize untrusted content parsingbea5c17fix: handle malformed wiki closing tags4006e00fix: decode Janny metadata onceee15088fix: preserve legacy parser behavior7701658Merge branch 'staging' into agent/code-scanning-cleanupc22ae2dfix: preserve malformed parser boundaries📊 Changes
34 files changed (+1215 additions, -202 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
package.json(+3 -1)📝
packages/client/src/components/agents/AgentEditor.tsx(+6 -1)📝
packages/client/src/components/chat/AgentAddSetupFields.tsx(+5 -1)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+5 -1)📝
packages/client/src/lib/card-asset-links.ts(+36 -4)📝
packages/server/src/routes/backgrounds.routes.ts(+16 -3)📝
packages/server/src/routes/bot-browser-chartavern.routes.ts(+7 -1)📝
packages/server/src/routes/bot-browser-janny.routes.ts(+63 -14)📝
packages/server/src/routes/bot-browser.routes.ts(+7 -1)📝
packages/server/src/routes/characters.routes.ts(+12 -8)📝
packages/server/src/routes/generate/agent-write-approval.ts(+49 -9)📝
packages/server/src/routes/generate/generate-route-utils.ts(+32 -8)📝
packages/server/src/routes/sprites.routes.ts(+8 -6)📝
packages/server/src/services/conversation/character-commands.ts(+1 -1)📝
packages/server/src/services/conversation/impersonate-prompt.ts(+9 -4)📝
packages/server/src/services/game/segment-edits.ts(+200 -69)📝
packages/server/src/services/generation/prompt-message-scope.ts(+47 -13)📝
packages/server/src/services/import/import-timestamps.ts(+3 -2)📝
packages/server/src/services/import/st-prompt.importer.ts(+48 -5)...and 14 more files
📄 Description
Linked issue
Maintainer-directed cleanup of the repository's open GitHub code-scanning findings; no separate issue requested.
Why this change
GitHub CodeQL currently mixes genuine parser, path, metadata, and outbound-fetch weaknesses with stale and framework-modeling false positives. The real findings should be fixed before release without disabling imports, extensions, local scripts, character cards, or other local-first capabilities.
What changed
The remaining CodeQL findings were separately audited. Framework-modeling false positives, intentional privileged local-file utilities, stale historical instances, and the explicit local-first saved-admin-secret tradeoff will be closed with documented dispositions after this patch lands.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm check;pnpm version:check;pnpm regression:code-scanning-security; full prompt regressions; request-security regressions; open-issues, Bot Browser, Janny import, and Professor Mari wiki regressions; server/client/shared lint; production builds;git diff --check.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUI evidence (if applicable)
No UI behavior or visual styling changes.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.