Skip to content

v2.3.2

Choose a tag to compare

@github-actions github-actions released this 10 Aug 11:05
· 5 commits to master since this release

Summary

The update command now uses gh api (authenticated, 5000 req/hr) when available, falling back to unauthenticated HTTP (60 req/hr) if gh is not installed.

Why

Updating a fleet of 6+ machines would exhaust the unauthenticated GitHub API rate limit (60 req/hr) after a few updates. With gh authenticated, the limit is 5000/hr — enough for any fleet size.

How it works

latestReleaseInfo() now tries two paths:

  1. gh api repos/javimosch/remotecmd-cli/releases/latest (if gh is in PATH)
  2. Unauthenticated HTTP to api.github.com (fallback)

This also fixes the passive nudge (maybeNudge) which uses the same function.

Test plan

  • Unit tests pass
  • CI passes (tests + coverage gate)
  • Local: update --check works while unauthenticated API is rate-limited (gh fallback)
  • rbm21: self-updated via gh-authenticated path
  • dk1: updated via SSH (no gh installed, used HTTP fallback)

Generated with Devin