Skip to content

Commit

Permalink
Update vertx-base.yaml with oauth access token
Browse files Browse the repository at this point in the history
  • Loading branch information
kcs-koteswaradodda authored Oct 7, 2024
1 parent a047875 commit bb6bb5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/vertx-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ jobs:
project_id: 'som-rit-infrastructure-prod'
workload_identity_provider: 'projects/294515190965/locations/global/workloadIdentityPools/github/providers/susom-github'

- name: Set up OAuth2 access token for Maven
run: |
echo "ACCESS_TOKEN=$(gcloud auth print-access-token)" >> $GITHUB_ENV
- name: Configure Maven Artifact Registry
run: |
echo "<settings>
<servers>
<server>
<id>artifact-registry</id>
<username>oauth2accesstoken</username>
<password>$(gcloud auth print-access-token)</password>
<password>${env.ACCESS_TOKEN}</password>
</server>
</servers>
</settings>" > $HOME/.m2/settings.xml
Expand Down

0 comments on commit bb6bb5d

Please sign in to comment.