Replace OSSRH secrets with Sonatype secrets

MSAL

Replace deprecated OSSRH_S01 secrets with new Sonatype secrets in GitHub Actions workflows. This is an example use of the ReplaceSecrets and ReplaceSecretKeys recipes combined used to update the Maven publishing secrets in OpenRewrite's GitHub organization.

org.openrewrite.github.ReplaceOssrhSecretsWithSonatype
mod run . --recipe=org.openrewrite.github.ReplaceOssrhSecretsWithSonatype

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Replace GitHub Action secret names
  2. Replace GitHub Action secret names
  3. Replace secret key names in GitHub Actions
  4. Replace secret key names in GitHub Actions