@@ -40,13 +40,13 @@ jobs:
4040
4141 steps :
4242 - id : ' auth'
43- uses : ' google-github-actions/auth@v1 '
43+ uses : ' google-github-actions/auth@v2 '
4444 with :
4545 workload_identity_provider : ' projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
4646 service_account :
' [email protected] ' 4747
4848 - name : ' Set up Cloud SDK'
49- uses : ' google-github-actions/setup-gcloud@v1 '
49+ uses : ' google-github-actions/setup-gcloud@v2 '
5050 with :
5151 version : ' >= 363.0.0'
5252
7474 install the latest available Cloud SDK version.
7575
7676 ` ` ` yaml
77- - uses: 'google-github-actions/setup-gcloud@v1 '
77+ - uses: 'google-github-actions/setup-gcloud@v2 '
7878 with:
7979 version: '>= 416.0.0'
8080 ` ` `
8989 version constraint as such :
9090
9191 ` ` ` yaml
92- - uses: 'google-github-actions/setup-gcloud@v1 '
92+ - uses: 'google-github-actions/setup-gcloud@v2 '
9393 with:
9494 version: '>= 363.0.0'
9595 ` ` `
@@ -133,13 +133,13 @@ jobs:
133133
134134 steps:
135135 - id: 'auth'
136- uses: 'google-github-actions/auth@v1 '
136+ uses: 'google-github-actions/auth@v2 '
137137 with:
138138 workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
139139 service_account: '[email protected] ' 140140
141141 - name: 'Set up Cloud SDK'
142- uses: 'google-github-actions/setup-gcloud@v1 '
142+ uses: 'google-github-actions/setup-gcloud@v2 '
143143
144144 - name: 'Use gcloud CLI'
145145 run: 'gcloud info'
@@ -152,12 +152,12 @@ job:
152152 job_id:
153153 steps:
154154 - id: 'auth'
155- uses: 'google-github-actions/auth@v1 '
155+ uses: 'google-github-actions/auth@v2 '
156156 with:
157157 credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
158158
159159 - name: 'Set up Cloud SDK'
160- uses: 'google-github-actions/setup-gcloud@v1 '
160+ uses: 'google-github-actions/setup-gcloud@v2 '
161161
162162 - name: 'Use gcloud CLI'
163163 run: 'gcloud info'
173173 job_id:
174174 steps:
175175 - name: 'Set up Cloud SDK'
176- uses: 'google-github-actions/setup-gcloud@v1 '
176+ uses: 'google-github-actions/setup-gcloud@v2 '
177177
178178 - name: 'Use gcloud CLI'
179179 run: 'gcloud info'
@@ -193,25 +193,25 @@ jobs:
193193
194194 steps:
195195 - id: 'auth service account 1'
196- uses: 'google-github-actions/auth@v1 '
196+ uses: 'google-github-actions/auth@v2 '
197197 with:
198198 workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
199199 service_account: '[email protected] ' 200200
201201 - name: 'Set up Cloud SDK'
202- uses: 'google-github-actions/setup-gcloud@v1 '
202+ uses: 'google-github-actions/setup-gcloud@v2 '
203203
204204 - name: 'Use gcloud CLI'
205205 run: 'gcloud auth list --filter=status:ACTIVE --format="value(account)"'
206206207207
208208 - id: 'auth service account 2'
209- uses: 'google-github-actions/auth@v1 '
209+ uses: 'google-github-actions/auth@v2 '
210210 with:
211211 credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
212212
213213 - name: 'Set up Cloud SDK'
214- uses: 'google-github-actions/setup-gcloud@v1 '
214+ uses: 'google-github-actions/setup-gcloud@v2 '
215215
216216 - name: 'Use gcloud CLI'
217217 run: 'gcloud auth list --filter=status:ACTIVE --format="value(account)"'
@@ -224,15 +224,15 @@ jobs:
224224We recommend pinning to the latest available major version :
225225
226226` ` ` yaml
227- - uses: 'google-github-actions/setup-gcloud@v1 '
227+ - uses: 'google-github-actions/setup-gcloud@v2 '
228228` ` `
229229
230230While this action attempts to follow semantic versioning, but we're ultimately
231231human and sometimes make mistakes. To prevent accidental breaking changes, you
232232can also pin to a specific version :
233233
234234` ` ` yaml
235- - uses: 'google-github-actions/setup-gcloud@v1 .0.0'
235+ - uses: 'google-github-actions/setup-gcloud@v2 .0.0'
236236` ` `
237237
238238However, you will not get automatic security updates or new features without
0 commit comments