Skip to content

Instantly share code, notes, and snippets.

View zenzen-sol's full-sized avatar

Sol Irvine zenzen-sol

View GitHub Profile
@zenzen-sol
zenzen-sol / gist:09742052aacee58df11ca2af27646905
Created October 3, 2025 10:02
Calling GCP Cloud Run Job from within GCP Workflow
Of course. Calling a Cloud Run Job from a Workflow is a common pattern. You do it by making an authenticated HTTP request to the Cloud Run API.
Since you're calling a Google Cloud API (`run.googleapis.com`), the workflow must authenticate using **OAuth 2.0**, not OIDC. The workflow will automatically use its assigned service account to generate the correct token.
Here is a YAML snippet for a Google Cloud Workflow that calls the OCR job with the necessary parameters.
### Workflow YAML to Run the OCR Job
You can add this as a step in your existing workflow: