From 723021fe3d36102cc6a49e151286c6801e6f33ca Mon Sep 17 00:00:00 2001 From: kcs-bandihareesh <106671992+kcs-bandihareesh@users.noreply.github.com> Date: Mon, 14 Oct 2024 13:00:42 +0530 Subject: [PATCH] Using WORKLOAD_IDENTITY_PROVIDER and Project as secrets. (#15) --- .github/workflows/ace-api.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ace-api.yaml b/.github/workflows/ace-api.yaml index 0f9d63a..bc4a3ad 100644 --- a/.github/workflows/ace-api.yaml +++ b/.github/workflows/ace-api.yaml @@ -78,8 +78,8 @@ jobs: - 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' + project_id: ${{ secrets.WORKLOAD_IDENTITY_PROJECT }} + workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} create_credentials_file: true export_environment_variables: true cleanup_credentials: true @@ -89,4 +89,4 @@ jobs: echo "ACCESS_TOKEN=$(gcloud auth print-access-token)" >> $GITHUB_ENV - name: Deploy Snapshots - run: mvn --batch-mode -e -DskipTests=true deploy -s ~/.m2/settings.xml \ No newline at end of file + run: mvn --batch-mode -e -DskipTests=true deploy -s ~/.m2/settings.xml