-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description:
Currently, our GitHub Actions workflow is configured to trigger Maven releases automatically. However, this process involves the use of a release key, which is sensitive and poses a security risk—especially in the context of an open source repository.
To better align with best practices and ensure the integrity of our releases, we should explore safer alternatives for managing releases. Potential areas to investigate include:
- Using GitHub Environments for setting gradle properties including the GPG key file
signing.keyId=...
signing.password=...
signing.secretKeyRingFile=/somewhere/secring.gpg
mavenCentralUsername=...
mavenCentralPassword=...
-
Moving the release process to a more controlled environment (e.g., self-hosted runner or external CI)
-
Requiring manual approval or pull request triggers before release steps
-
Leveraging tools like GitHub Releases + manual Maven Central publishing
Reference:
https://central.sonatype.org/publish/requirements/gpg/
https://central.sonatype.org/publish/generate-portal-token/
Goal:
Make our Maven release process more secure without sacrificing too much convenience.