Skip to content

ci: migrate PyPI publishing workflow to OSS Exit Gate - #55

Merged
jupblb merged 1 commit into
google:mainfrom
alonsopf89:oss-exit-gate-pypi-migration
Nov 17, 2026
Merged

jupblb merged 1 commit into
google:mainfrom
alonsopf89:oss-exit-gate-pypi-migration

Conversation

@alonsopf89

Copy link
Copy Markdown
Contributor

Summary

Migrates PyPI package publishing (gtasks-md) in .github/workflows/publish.yaml to Google's OSS Exit Gate (gtasks-md/pypi) using keyless Workload Identity Federation (OIDC):

  • Authenticates to Google Cloud via google-github-actions/auth (workload_identity_provider: 'projects/305452601764/locations/global/workloadIdentityPools/builders/providers/github') and google-github-actions/setup-gcloud.
  • Cleans up any incomplete staged version (gtasks-md@${PKG_VER}) in the staging Artifact Registry repository (gtasks-md--pypi) prior to uploading.
  • Stages built distributions to Artifact Registry (https://us-python.pkg.dev/oss-exit-gate-prod/gtasks-md--pypi/) and uploads manifest.json (PublishingManifest) to gs://oss-exit-gate-prod-projects-bucket/gtasks-md/pypi/manifests/ to trigger downstream PyPI release.
  • End-to-end staging & manifest smoke test verified against oss-exit-gate-prod (gtasks-md--pypi).

Internal Reference (for Google maintainers):

  • Author: Fernando Alonso (http://who/fernandoalonso — @alonsopf89, registered in https://opensource.corp.google.com/github/, working with the Google Open Source Security / ISE OSS Exit Gate team)
  • Documentation & Migration Guide: http://go/oss-exit-gate (internal to google3)
  • Buganizer Tracking Issue: http://b/579645755 (Parent Epic: http://b/576673325)
  • OSS Exit Gate Onboarding Config: //depot/google3/configs/security/opensource/exit_gate/prod/projects/gtasks-md/pypi/project.txtpb
    • Step 6 Config CL: http://cl/1017634388
    • Step 7 Provisioned Resources CL (README.md): http://cl/1017658331
    • Trusted Publisher SA (for PyPI Trusted Publishing setup): gtasks-md-py@oss-exit-gate-prod.iam.gserviceaccount.com
    • Once this PR is merged, we will send the final internal Step 10 Critique CL transferring maintainers and email_notifications in project.txtpb directly to your team.

@jupblb
jupblb merged commit ea99eb0 into google:main Nov 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants