fix: add GPG secrets to validation job for artifact signing#26
Merged
aneojgurhem merged 1 commit intomainfrom Nov 24, 2025
Merged
fix: add GPG secrets to validation job for artifact signing#26aneojgurhem merged 1 commit intomainfrom
aneojgurhem merged 1 commit intomainfrom
Conversation
aneojgurhem
requested changes
Nov 24, 2025
.github/workflows/release.yml
Outdated
Comment on lines
+30
to
+31
| env: | ||
| MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} |
Contributor
There was a problem hiding this comment.
Suggested change
| env: | |
| MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} |
| java-version: '17' | ||
| cache: maven | ||
| gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} | ||
| gpg-passphrase: MAVEN_GPG_PASSPHRASE |
Contributor
There was a problem hiding this comment.
Suggested change
| gpg-passphrase: MAVEN_GPG_PASSPHRASE | |
| gpg-passphrase: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} |
eaedfa0 to
b5ef2d1
Compare
aneojgurhem
approved these changes
Nov 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The release workflow is currently failing at the "Verify build" step with GPG signing errors:
This prevents validation of the release build and blocks the release process.
Description
Root Cause
The
ci-releaseMaven profile activates GPG signing via themaven-gpg-pluginduring theverifyphase:The
setup-javaaction requires environment variables to configure GPG signing:Previous State
The
validate-modulesjob did not set these environment variables, so:setup-javacouldn't findMAVEN_GPG_PASSPHRASEin the environmentThe
publish-modulesjob had these variables set at the step level, which is inefficient and error-prone.Solution
Add environment variables at the job level in both jobs:
validate-modules Job
publish-modules Job
Changes Made
In
validate-modulesjob:env:block at job level withMAVEN_GPG_PASSPHRASEsetup-javawithgpg-private-keyandgpg-passphraseenv:block from verify step (uses job-level env)In
publish-modulesjob:MAVEN_GPG_PASSPHRASE,MAVEN_USERNAME,MAVEN_PASSWORDat job levelenv:blocks from individual stepsNo changes to:
Testing
Expected CI Behavior
With this fix, the release workflow will: