
Issue #21628 has been reported by k0kubun (Takashi Kokubun). ---------------------------------------- Misc #21628: Sync default gems to ruby/ruby with GitHub Actions https://bugs.ruby-lang.org/issues/21628 * Author: k0kubun (Takashi Kokubun) * Status: Open ---------------------------------------- ## Announcement We will change the way default gems are synchronized to ruby/ruby. * **Before**: Push to gem repository → webhook.cgi → git.ruby-lang.org pushes to ruby/ruby * **After**: Push to gem repository → GitHub Actions on gem repository → GitHub Actions on ruby/ruby pushes to ruby/ruby ## Background * The apache2 server for https://git.ruby-lang.org has been taken down because it has been under DDoS attacks and we couldn't handle it. As a result, its webhook.cgi is no longer online. * It was hard for default gem maintainers to notice sync failures, look at their logs, and fix them. * Moving the implementation to GitHub Actions would make them more visible and accessible for the maintainers. ## Operations To set up sync from ruby/xxx to ruby/ruby, you need to do the following operations: 1. [Optional] Remove `https://git.ruby-lang.org/webhook` from Settings > Webhooks if it's currently set. 2. On Settings > Secrets and variables > Actions > Organization secrets, make sure the repository has access to `RUBY_SYNC_DEFAULT_GEMS_PRIVATE_KEY` * Consult @hsbt if it's not visible for the repository. "ruby-sync-default-gems GitHub App Private Key" is managed under the "Ruby core team" 1Password vault. 3. Add a GitHub Actions workflow list this [.github/workflows/sync-ruby.yml](https://github.com/ruby/erb/blob/v5.0.3/.github/workflows/sync-ruby.yml) -- https://bugs.ruby-lang.org/