fix: ignore unsafe hydrated release assets - #470
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout. (5)
🔇 Additional comments (4)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe Velopack history hydrator now rejects unsafe asset filenames, filters hydrated feeds to safe ChangesVelopack filename safety
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Feed as Velopack feed
participant Hydrator as hydrateVelopackHistory
participant Fetch as globalThis.fetch
participant Filesystem as Release directory
Feed->>Hydrator: Provide asset filenames
Hydrator->>Hydrator: Validate safe .nupkg names
Hydrator->>Fetch: Fetch accepted package
Fetch-->>Hydrator: Return package contents
Hydrator->>Filesystem: Write accepted packages and filtered feed
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
c1c7186 to
14756d3
Compare
|
建议覆盖更多 unsafe filename 测试。 Please add coverage for more unsafe filename cases. |
|
This pull request has been inactive for 21 days. Please update it or leave a note if it is still in progress. |
…se-feed-bug-2 # Conflicts: # apps/desktop/scripts/ci/hydrate-velopack-history.mjs # apps/desktop/tests/ci/hydrate-velopack-history.test.ts
Summary
Related issue or RFC
Related to https://github.com/TouchAI-org/TouchAI
AI assistance disclosure
Testing evidence
pnpm test:prdid not run locally because the Windows environment only exposes pnpm through Corepack while the hook expects a direct pnpm shim. CI should provide full-suite proof before merge.Risk notes
AgentService, runtime, MCP, or schema impact: noneScreenshots or recordings
Not applicable; this changes release history hydration logic covered by unit tests.
Checklist
[WIP]or similar title prefixes.AgentService, runtime, MCP, or schema boundaries, there is an accepted RFC.pnpm test:prfor this code PR, or this is a docs-only change.pnpm test:coverage:rustor relied on CI coverage evidence.pnpm test:e2elocally or documented why CI is the first valid proof.