ci: improve release and security automation - #115
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves the project’s release pipeline and security automation while aligning the self-update UX/docs with a new “no persistent rollback artifacts” approach.
Changes:
- Release workflow: enable UPX compression and broaden smoke checks (including riscv64 via QEMU) across more targets.
- Self-update swap: switch companion rollback handling to temporary “.update-backup” files and clean up legacy
.prevartifacts after successful installs. - Security automation: add CodeQL scanning and weekly Dependabot minor/patch updates; update architecture docs + console locales to remove
.prevrollback messaging.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/selfupdate/swap.rs | Removes persistent .prev behavior; uses temporary companion backups and cleans legacy artifacts post-success. |
| docs/src/content/docs/zh-cn/introduction/architecture.md | Updates §19 table wording to match new “update artifacts” framing. |
| docs/src/content/docs/introduction/architecture.md | Updates §19 table wording to match new “update artifacts” framing. |
| console/src/locales/zh-TW/update.json | Removes .prev rollback mention from update confirmation copy. |
| console/src/locales/zh-CN/update.json | Removes .prev rollback mention from update confirmation copy. |
| console/src/locales/en/update.json | Removes .prev rollback mention from update confirmation copy. |
| .github/workflows/release.yml | Adds UPX install/compress + expanded smoke checks for additional release targets. |
| .github/workflows/codeql.yml | Introduces CodeQL scanning for JS/TS and Rust on PRs, pushes, and a weekly schedule. |
| .github/dependabot.yml | Adds weekly Dependabot minor/patch updates for Cargo and multiple npm directories. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+144
to
+146
| Err(error) => Err(UpdateError::Swap(format!( | ||
| "failed to remove stale update file at {path:?}: {error}" | ||
| ))), |
Comment on lines
+150
to
156
| fn remove_best_effort(path: &Path) { | ||
| if let Err(error) = std::fs::remove_file(path) | ||
| && error.kind() != std::io::ErrorKind::NotFound | ||
| { | ||
| tracing::warn!(?path, %error, "failed to remove obsolete update file"); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation