Skip to content

Commit

Permalink
Replace workload identity with AR Key
Browse files Browse the repository at this point in the history
  • Loading branch information
kcs-bandihareesh committed Oct 4, 2024
1 parent 345e571 commit bfdfa67
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/vertx-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ jobs:
runs-on: ubuntu-20.04
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Google Cloud credentials
run: echo "${{ secrets.ARTIFACT_REGISTRY_KEY }}" > $HOME/gcloud-key.json

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
project_id: 'som-rit-infrastructure-prod'
workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'
run: |
gcloud auth activate-service-account --key-file=$HOME/gcloud-key.json
gcloud config set project som-rit-infrastructure-prod
- name: Set up JDK
uses: actions/setup-java@v4
Expand Down Expand Up @@ -52,16 +53,17 @@ jobs:
runs-on: ubuntu-20.04
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Google Cloud credentials
run: echo "${{ secrets.ARTIFACT_REGISTRY_KEY }}" > $HOME/gcloud-key.json

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
project_id: 'som-rit-infrastructure-prod'
workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'
run: |
gcloud auth activate-service-account --key-file=$HOME/gcloud-key.json
gcloud config set project som-rit-infrastructure-prod
- name: Set up JDK
uses: actions/setup-java@v4
Expand Down

0 comments on commit bfdfa67

Please sign in to comment.