Skip to content

Commit

Permalink
removed user authentication for public repos in test stage
Browse files Browse the repository at this point in the history
  • Loading branch information
kcs-bandihareesh committed Dec 20, 2024
1 parent 5439bb2 commit afcf080
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/vertx-parent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,6 @@ jobs:
with:
fetch-depth: 0

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
project_id: ${{ secrets.WORKLOAD_IDENTITY_PROJECT }}
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
create_credentials_file: true
export_environment_variables: true
cleanup_credentials: true

- name: Set up OAuth2 access token for Maven
run: |
echo "ACCESS_TOKEN=$(gcloud auth print-access-token)" >> $GITHUB_ENV
- name: Set up JDK
uses: actions/setup-java@v4
with:
Expand Down
14 changes: 3 additions & 11 deletions travis/actions-maven-settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,11 @@
<configuration>
<httpConfiguration>
<get>
<usePreemptive>true</usePreemptive>
<usePreemptive>false</usePreemptive>
</get>
<head>
<usePreemptive>true</usePreemptive>
<usePreemptive>false</usePreemptive>
</head>
<put>
<params>
<property>
<name>http.protocol.expect-continue</name>
<value>false</value>
</property>
</params>
</put>
</httpConfiguration>
</configuration>
<username>oauth2accesstoken</username> <!-- Use OAuth2 access token -->
Expand All @@ -37,4 +29,4 @@
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>
</settings>

0 comments on commit afcf080

Please sign in to comment.