Repository navigation
ci(release): migrate Maven Central publishing workflow to OSS Exit Gate - #5367
Open
alonsopf89 wants to merge 2 commits into
Open
alonsopf89 wants to merge 2 commits into
alonsopf89 wants to merge 2 commits into
Conversation
bcorso
reviewed
Nov 19, 2026
| workload_identity_provider: 'projects/305452601764/locations/global/workloadIdentityPools/builders/providers/github' | ||
| - name: 'Set up Cloud SDK' | ||
| uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # v3.0.1 | ||
| - name: 'Clean up failed staging attempt for this exact version (if any)' |
There was a problem hiding this comment.
Can we move this into a separate bash script?
| print(f"Generated manifest.json with {sum(len(v) for v in groups.values())} staged packages across {list(groups.keys())}") | ||
| PY | ||
| gcloud storage cp manifest.json \ | ||
| "gs://oss-exit-gate-prod-projects-bucket/dagger/mavencentral/manifests/manifest-${DAGGER_RELEASE_VERSION}-${RUN_ID}-${RUN_ATTEMPT}.json" |
There was a problem hiding this comment.
Can this be pulled out into a separate python script?
| run: | | ||
| set -euo pipefail | ||
| export CI_DEPLOY_USERNAME="oauth2accesstoken" | ||
| export CI_DEPLOY_PASSWORD="$(gcloud auth print-access-token)" |
There was a problem hiding this comment.
Does this need to be masked, e.g. echo "::add-mask::${CI_DEPLOY_PASSWORD}"?
Addresses review feedback from @bcorso: - Move Artifact Registry staging cleanup loop into util/cleanup-exit-gate-staging.sh. - Move OSS Exit Gate manifest generator into util/generate-exit-gate-manifest.py. - Mask CI_DEPLOY_PASSWORD via ::add-mask:: immediately after fetching the short-lived gcloud access token.
Author
|
Thanks for the feedback, @bcorso! Addressed all three comments in
Ready for another look whenever you have a chance! |
This branch has not been deployed
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.
Summary
Migrates
.github/workflows/release.ymlMaven Central publishing to OSS Exit Gate via keyless Workload Identity Federation (OIDC):gpg:sign-and-deploy-fileviaCI_GPG_PRIVATE_KEY/CI_GPG_PASSPHRASE), Bazel/Gradle test jobs, and tagged release/docs steps unchanged.google-github-actions/auth(pinned to commit SHA) and deploys allcom.google.dagger+com.google.dagger.hilt.androidartifacts viautil/deploy-all.shtohttps://us-maven.pkg.dev/oss-exit-gate-prod/dagger--mavencentralusing ephemeral OIDC credentials instead of staticCI_DEPLOY_USERNAME/CI_DEPLOY_PASSWORD/SONATYPE_TOKENsecrets.manifest.jsontogs://oss-exit-gate-prod-projects-bucket/dagger/mavencentral/manifests/to trigger OSS Exit Gate's Maven Central promotion.