Joshua Rogers' Scribbles

You can no longer star archived GitHub repositories

I like to archive my popular, but “finished” GitHub repositories, for two main reasons:

  1. If my SSH key ever gets stolen, it limits the damage that an attacker can do to my popular GitHub repositories,
  2. Those repositories are, as far as I consider, “finished”, and will no longer get updates.

You can’t star archived GitHub repositories anymore, however. You can fork the repository and then star the fork, but it’s no longer possible to star the original.

The greyed-out Star button on my archived Squid-Security-Audit repository, with the tooltip: You can't star MegaManSec/Squid-Security-Audit
“You can’t star MegaManSec/Squid-Security-Audit”

This also means you can no longer un-star an archived repository. This was reported back in August, but it seems that this “feature” has been rolled out to more users since then.

In order to achieve something similar (an archived but still public repository which will be useful for others), I’ve instead set up these repositories to:

  1. Disallow pushing to any branch or tag (with rulesets),
  2. Disallow creating issues, PRs, discussions, etc.,
  3. Disable Actions.

With just an SSH key, someone can push branches, push tags, and push to the repository’s wiki. The wiki is its own git repository that rulesets don’t cover, so turn it off. A branch or tag push is also what starts GitHub Actions, which run with the repository’s secrets, hence disabling Actions. Everything else (issues, PRs, releases, settings, and the rulesets themselves) needs the website or an API token, not an SSH key.

How annoying.