fix: Skip signing non-singnable file types like appx#3151
Conversation
…gning process - Added logic to skip files with extensions `.appx` and `.zip` in both `signWindowsOnLinux` and `signWindowsOnWindows` functions, improving the efficiency of the signing process by avoiding unnecessary operations on unsupported file types. - Included console logging to inform users when a file is skipped, enhancing transparency in the signing workflow.
WalkthroughAdded early-return checks in the Windows signing flows to skip Authenticode signing for files with Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
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 |
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
build/winSignKms.js(2 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: CR
Repo: RocketChat/Rocket.Chat.Electron PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-09-26T19:24:21.364Z
Learning: Use two-phase Windows code signing with Google Cloud KMS (build unsigned, then sign with jsign)
📚 Learning: 2025-09-26T19:24:21.364Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat.Electron PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-09-26T19:24:21.364Z
Learning: Use two-phase Windows code signing with Google Cloud KMS (build unsigned, then sign with jsign)
Applied to files:
build/winSignKms.js
📚 Learning: 2025-09-26T19:24:21.364Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat.Electron PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-09-26T19:24:21.364Z
Learning: Applies to {rollup.config.mjs,electron-builder.json,tsconfig.json,.eslintrc.json,jest.config.js} : Maintain and configure the project via the designated root config files for build, packaging, TypeScript, ESLint, and Jest
Applied to files:
build/winSignKms.js
🧬 Code graph analysis (1)
build/winSignKms.js (1)
workspaces/desktop-release-action/dist/index.js (5)
path(142-142)path(621-621)path(1145-1145)path(2862-2862)path(3051-3051)
🪛 GitHub Check: check (ubuntu-latest)
build/winSignKms.js
[failure] 170-170:
Replace ``[winSignKms]·Skipping·${ext}·file·(not·applicable·for·Authenticode·signing):,·path.basename(input) with `⏎······`[winSignKms]·Skipping·${ext}·file·(not·applicable·for·Authenticode·signing):`,⏎······path.basename(input)⏎····`
[failure] 312-312:
Replace ``[winSignKms]·Skipping·${ext}·file·(not·applicable·for·Authenticode·signing):,·path.basename(input) with `⏎······`[winSignKms]·Skipping·${ext}·file·(not·applicable·for·Authenticode·signing):`,⏎······path.basename(input)⏎····`
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: check (windows-latest)
- GitHub Check: check (macos-latest)
- Enhanced the console logging in both `signWindowsOnLinux` and `signWindowsOnWindows` functions to improve readability by formatting the log messages across multiple lines. This change maintains clarity when informing users about skipped file types during the Authenticode signing process.
* feat(winSignKms): Skip non-signable file types during Authenticode signing process - Added logic to skip files with extensions `.appx` and `.zip` in both `signWindowsOnLinux` and `signWindowsOnWindows` functions, improving the efficiency of the signing process by avoiding unnecessary operations on unsupported file types. - Included console logging to inform users when a file is skipped, enhancing transparency in the signing workflow. * refactor(winSignKms): Improve console logging for skipped file types - Enhanced the console logging in both `signWindowsOnLinux` and `signWindowsOnWindows` functions to improve readability by formatting the log messages across multiple lines. This change maintains clarity when informing users about skipped file types during the Authenticode signing process.
* feat(winSignKms): Skip non-signable file types during Authenticode signing process - Added logic to skip files with extensions `.appx` and `.zip` in both `signWindowsOnLinux` and `signWindowsOnWindows` functions, improving the efficiency of the signing process by avoiding unnecessary operations on unsupported file types. - Included console logging to inform users when a file is skipped, enhancing transparency in the signing workflow. * refactor(winSignKms): Improve console logging for skipped file types - Enhanced the console logging in both `signWindowsOnLinux` and `signWindowsOnWindows` functions to improve readability by formatting the log messages across multiple lines. This change maintains clarity when informing users about skipped file types during the Authenticode signing process.
* feat(winSignKms): Skip non-signable file types during Authenticode signing process - Added logic to skip files with extensions `.appx` and `.zip` in both `signWindowsOnLinux` and `signWindowsOnWindows` functions, improving the efficiency of the signing process by avoiding unnecessary operations on unsupported file types. - Included console logging to inform users when a file is skipped, enhancing transparency in the signing workflow. * refactor(winSignKms): Improve console logging for skipped file types - Enhanced the console logging in both `signWindowsOnLinux` and `signWindowsOnWindows` functions to improve readability by formatting the log messages across multiple lines. This change maintains clarity when informing users about skipped file types during the Authenticode signing process.
* feat(winSignKms): Skip non-signable file types during Authenticode signing process - Added logic to skip files with extensions `.appx` and `.zip` in both `signWindowsOnLinux` and `signWindowsOnWindows` functions, improving the efficiency of the signing process by avoiding unnecessary operations on unsupported file types. - Included console logging to inform users when a file is skipped, enhancing transparency in the signing workflow. * refactor(winSignKms): Improve console logging for skipped file types - Enhanced the console logging in both `signWindowsOnLinux` and `signWindowsOnWindows` functions to improve readability by formatting the log messages across multiple lines. This change maintains clarity when informing users about skipped file types during the Authenticode signing process.
* feat(winSignKms): Skip non-signable file types during Authenticode signing process - Added logic to skip files with extensions `.appx` and `.zip` in both `signWindowsOnLinux` and `signWindowsOnWindows` functions, improving the efficiency of the signing process by avoiding unnecessary operations on unsupported file types. - Included console logging to inform users when a file is skipped, enhancing transparency in the signing workflow. * refactor(winSignKms): Improve console logging for skipped file types - Enhanced the console logging in both `signWindowsOnLinux` and `signWindowsOnWindows` functions to improve readability by formatting the log messages across multiple lines. This change maintains clarity when informing users about skipped file types during the Authenticode signing process.
* feat(winSignKms): Skip non-signable file types during Authenticode signing process - Added logic to skip files with extensions `.appx` and `.zip` in both `signWindowsOnLinux` and `signWindowsOnWindows` functions, improving the efficiency of the signing process by avoiding unnecessary operations on unsupported file types. - Included console logging to inform users when a file is skipped, enhancing transparency in the signing workflow. * refactor(winSignKms): Improve console logging for skipped file types - Enhanced the console logging in both `signWindowsOnLinux` and `signWindowsOnWindows` functions to improve readability by formatting the log messages across multiple lines. This change maintains clarity when informing users about skipped file types during the Authenticode signing process.
.appxand.zipin bothsignWindowsOnLinuxandsignWindowsOnWindowsfunctions, improving the efficiency of the signing process by avoiding unnecessary operations on unsupported file types.Closes #ISSUE_NUMBER
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.