Skip to content

Commit

Permalink
Migrate from GCR_JSON_KEY to id-token: write (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
inaas7 authored Oct 29, 2024
1 parent 9ce1453 commit bef6c9b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit bef6c9b

Please sign in to comment.