-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from GCR_JSON_KEY to id-token: write (#4)
- Loading branch information
Showing
1 changed file
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,19 +23,16 @@ jobs: | |
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: "Google Auth" | ||
uses: "google-github-actions/auth@v1" | ||
- name: Authenticate to Google Cloud | ||
id: auth-work-identity | ||
uses: "google-github-actions/auth@v2" | ||
with: | ||
credentials_json: ${{ secrets.GCR_JSON_KEY }} | ||
|
||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
with: | ||
version: ${{ vars.GCLOUD_SDK_VERSION }} | ||
project_id: ${{ secrets.PROJECT_ID }} | ||
workload_identity_provider: "projects/552057127791/locations/global/workloadIdentityPools/github/providers/github" | ||
service_account: "[email protected]" | ||
|
||
- name: Configure GCloud and Docker | ||
if: ${{ ! env.ACT }} | ||
|