Skip to content

fix: preserve nightly backup status and current-branch pushes#14

Open
Gujiassh wants to merge 1 commit intoslowmist:mainfrom
Gujiassh:fix/nightly-backup-branch-aware-refresh-20260411
Open

fix: preserve nightly backup status and current-branch pushes#14
Gujiassh wants to merge 1 commit intoslowmist:mainfrom
Gujiassh:fix/nightly-backup-branch-aware-refresh-20260411

Conversation

@Gujiassh
Copy link
Copy Markdown

Summary

  • keep the nightly backup result in the parent shell so the final audit summary reflects the real outcome
  • resolve the current branch with git -C instead of relying on a subshell-scoped cd
  • push backups to the active branch instead of always targeting main
  • fail explicitly when the current branch cannot be determined

Validation

  • bash -n scripts/nightly-security-audit.sh

Notes

  • clean replacement for the previously closed #3 lane
  • refreshed on current origin/main and limited to scripts/nightly-security-audit.sh

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.

1 participant