chore(release): pin security contact and cnb tag sync

This commit is contained in:
Hunter Bown
2026-05-12 14:48:10 -05:00
parent b7f14b2116
commit 3a1b107af9
6 changed files with 23 additions and 8 deletions
+14 -2
View File
@@ -9,7 +9,8 @@
# `version` in the root `Cargo.toml`.
# 3. Internal `deepseek-*` path dependency pins match the workspace version.
# 4. The TUI crate's packaged changelog copy matches root `CHANGELOG.md`.
# 5. `Cargo.lock` is in sync with the manifests (`cargo metadata --locked`
# 5. `SECURITY.md` keeps the dedicated security contact.
# 6. `Cargo.lock` is in sync with the manifests (`cargo metadata --locked`
# fails if not).
set -euo pipefail
@@ -51,7 +52,18 @@ if ! cmp -s CHANGELOG.md crates/tui/CHANGELOG.md; then
fail=1
fi
# 5) Cargo.lock in sync.
# 5) Security contact guard.
security_email="security@deepseek-tui.com"
if ! grep -qF "${security_email}" SECURITY.md; then
echo "::error::SECURITY.md must list ${security_email} as the security contact." >&2
fail=1
fi
if grep -qF "hmbown.dev@gmail.com" SECURITY.md; then
echo "::error::SECURITY.md must not use the personal fallback email; use ${security_email}." >&2
fail=1
fi
# 6) Cargo.lock in sync.
if ! cargo metadata --locked --format-version 1 --no-deps >/dev/null 2>&1; then
echo "::error::Cargo.lock is out of sync with the manifests. Run 'cargo update -p deepseek-tui' or 'cargo build' and commit the result." >&2
fail=1