docs(updater): security advisory email and JSON feed

Merged
RI
21d ago
+125-0

Summary

Adds a Capgo docs page under Updater that explains:

  • Opt-in email alerts when a published GitHub security advisory affects Capgo npm packages (@capgo/capacitor-updater, Cap-go capacitor-* plugins, @capgo/cli)
  • Double opt-in subscription through the hosted form (Cloudflare Turnstile token) and unsubscribe from any message
  • The machine-readable GET {ADVISORY_API_BASE_URL}/v1/advisories JSON feed and TypeScript types
  • Links to Cap-go organization security advisories on GitHub

Aligned with Cap-go/automations security-advisories service (PR #149): no live API base URL until deploy, no exploit or bounty detail in docs.

Validation

  • bun run ci:verify:docs (prettier, astro check, docs build)
  • bun run lint

Screenshots

Built static docs (bun run build:docs), served locally, captured with Playwright.

Before (main): Updater getting started sidebar without Security advisory notifications

Desktop:

Before desktop

Mobile:

Before mobile

After: /docs/plugins/updater/security-advisory-notifications/

Desktop:

After desktop

Mobile:

After mobile

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Documentation
    • Added a guide to optional, double-opt-in email alerts for security advisories affecting specified Capgo packages, with affected version ranges, patched releases, and package-specific upgrade steps.
    • Documented the planned JSON feed, its fields, and polling guidance, with links to GitHub advisories.
    • Clarified that the subscription form and hosted feed are not yet publicly available and that GitHub remains the authoritative source.
    • Added a link to the guide in the Updater documentation sidebar.