Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ on:
type: boolean
required: true
default: false
secrets:
credentials_json:
beta:
type: boolean
required: false
default: false

jobs:
build:
Expand Down Expand Up @@ -97,6 +98,9 @@ jobs:
runs-on: ubuntu-latest
needs:
- build
permissions:
id-token: write # required for keyless WIF (OIDC) auth to GCP
contents: write # required for softprops/action-gh-release
steps:

### Pulling down the previously built plugins
Expand All @@ -114,17 +118,19 @@ jobs:
- name: List
run: ls -la

### Authenticating with gcloud
- name: Authenticate with Google cloud
uses: google-github-actions/auth@v2
### Authenticating with gcloud via keyless Workload Identity Federation (OIDC)
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v3
with:
credentials_json: ${{ secrets.credentials_json }}
project_id: ${{ inputs.project_id }}
workload_identity_provider: projects/497784144587/locations/global/workloadIdentityPools/github-pool/providers/github-provider
service_account: github-actions@integration-server-326115.iam.gserviceaccount.com
create_credentials_file: true

### Setting up gcloud cli
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
project_id: integration-server-326115

### Verifying that we are good to go with gcloud
- name: 'Use gcloud CLI'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:

jobs:
build:
permissions:
id-token: write # required so the reusable workflow can mint a GCP OIDC token
contents: write # required for GitHub release creation in the reusable workflow
uses: ./.github/workflows/build.yaml
with:
deploy: true
secrets:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
5 changes: 3 additions & 2 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:

jobs:
build:
permissions:
id-token: write # required so the reusable workflow can mint a GCP OIDC token
contents: write # required for GitHub release creation in the reusable workflow
uses: ./.github/workflows/build.yaml
with:
deploy: false
secrets:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
Loading