Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add automatic release and provenance generation #373

Conversation

behnazh-w
Copy link
Member

Description

This PR adds a new GitHub Actions workflow to automate the release of the artifacts and generate SLSA provenances.

To use this Action to release, the following secrets need to be created:

  • MAVEN_USERNAME: the username to used to deploy the artifacts to Maven Central.
  • MAVEN_CENTRAL_TOKEN: the token that you can obtain from the Maven Central portal
  • MAVEN_GPG_PRIVATE_KEY: the GPG private key
  • MAVEN_GPG_PASSPHRASE: the GPG private key passphrase

When the project is ready for the next release, the version should be bumped as usual and committed to the repo. Then a draft release and tag can be created using GitHub's release feature.. Once the release is created, the release.yaml GitHub Action will automatically run and deploy the artifact to Maven Central.

For more information, see the documentation here: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-Apache-Maven

Motivation

Having automatic releases and generating provenances helps mitigating supply-chain attacks. For example, if the deployment is done manually and the maintainer's machine is compromised, the released artifact may contain malicious code and abused by malicious actors to distribute malware.

Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 19, 2024
Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@behnazh-w
Copy link
Member Author

I will close this PR because the artifacts need to be released to Maven Central from an Oracle internal service.

@behnazh-w behnazh-w closed this Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants