Skip to content

ci: improve release and security automation - #115

Merged
LeenHawk merged 3 commits into
mainfrom
ci/upx-new-targets
Jul 20, 2026
Merged

ci: improve release and security automation#115
LeenHawk merged 3 commits into
mainfrom
ci/upx-new-targets

Conversation

@LeenHawk

Copy link
Copy Markdown
Owner

Summary

  • enable UPX packaging and smoke checks for additional release targets
  • remove persistent self-update rollback copies after successful installs
  • add CodeQL scanning and weekly minor/patch Dependabot updates

Validation

  • cargo fmt --all --check
  • cargo clippy --features full --all-targets -- -D warnings

Copilot AI review requested due to automatic review settings July 20, 2026 11:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 .prev artifacts after successful installs.
  • Security automation: add CodeQL scanning and weekly Dependabot minor/patch updates; update architecture docs + console locales to remove .prev rollback 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 thread src/selfupdate/swap.rs
Comment on lines +144 to +146
Err(error) => Err(UpdateError::Swap(format!(
"failed to remove stale update file at {path:?}: {error}"
))),
Comment thread src/selfupdate/swap.rs
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");
}
}
@LeenHawk
LeenHawk merged commit 7299f86 into main Jul 20, 2026
24 of 27 checks passed
@LeenHawk
LeenHawk deleted the ci/upx-new-targets branch July 20, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants