@@ -40,13 +40,13 @@ jobs:
40
40
41
41
steps :
42
42
- id : ' auth'
43
- uses : ' google-github-actions/auth@v1 '
43
+ uses : ' google-github-actions/auth@v2 '
44
44
with :
45
45
workload_identity_provider : ' projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
46
46
service_account :
' [email protected] '
47
47
48
48
- name : ' Set up Cloud SDK'
49
- uses : ' google-github-actions/setup-gcloud@v1 '
49
+ uses : ' google-github-actions/setup-gcloud@v2 '
50
50
with :
51
51
version : ' >= 363.0.0'
52
52
74
74
install the latest available Cloud SDK version.
75
75
76
76
` ` ` yaml
77
- - uses: 'google-github-actions/setup-gcloud@v1 '
77
+ - uses: 'google-github-actions/setup-gcloud@v2 '
78
78
with:
79
79
version: '>= 416.0.0'
80
80
` ` `
89
89
version constraint as such :
90
90
91
91
` ` ` yaml
92
- - uses: 'google-github-actions/setup-gcloud@v1 '
92
+ - uses: 'google-github-actions/setup-gcloud@v2 '
93
93
with:
94
94
version: '>= 363.0.0'
95
95
` ` `
@@ -133,13 +133,13 @@ jobs:
133
133
134
134
steps:
135
135
- id: 'auth'
136
- uses: 'google-github-actions/auth@v1 '
136
+ uses: 'google-github-actions/auth@v2 '
137
137
with:
138
138
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
139
139
service_account: '[email protected] '
140
140
141
141
- name: 'Set up Cloud SDK'
142
- uses: 'google-github-actions/setup-gcloud@v1 '
142
+ uses: 'google-github-actions/setup-gcloud@v2 '
143
143
144
144
- name: 'Use gcloud CLI'
145
145
run: 'gcloud info'
@@ -152,12 +152,12 @@ job:
152
152
job_id:
153
153
steps:
154
154
- id: 'auth'
155
- uses: 'google-github-actions/auth@v1 '
155
+ uses: 'google-github-actions/auth@v2 '
156
156
with:
157
157
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
158
158
159
159
- name: 'Set up Cloud SDK'
160
- uses: 'google-github-actions/setup-gcloud@v1 '
160
+ uses: 'google-github-actions/setup-gcloud@v2 '
161
161
162
162
- name: 'Use gcloud CLI'
163
163
run: 'gcloud info'
173
173
job_id:
174
174
steps:
175
175
- name: 'Set up Cloud SDK'
176
- uses: 'google-github-actions/setup-gcloud@v1 '
176
+ uses: 'google-github-actions/setup-gcloud@v2 '
177
177
178
178
- name: 'Use gcloud CLI'
179
179
run: 'gcloud info'
@@ -193,25 +193,25 @@ jobs:
193
193
194
194
steps:
195
195
- id: 'auth service account 1'
196
- uses: 'google-github-actions/auth@v1 '
196
+ uses: 'google-github-actions/auth@v2 '
197
197
with:
198
198
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
199
199
service_account: '[email protected] '
200
200
201
201
- name: 'Set up Cloud SDK'
202
- uses: 'google-github-actions/setup-gcloud@v1 '
202
+ uses: 'google-github-actions/setup-gcloud@v2 '
203
203
204
204
- name: 'Use gcloud CLI'
205
205
run: 'gcloud auth list --filter=status:ACTIVE --format="value(account)"'
206
206
207
207
208
208
- id: 'auth service account 2'
209
- uses: 'google-github-actions/auth@v1 '
209
+ uses: 'google-github-actions/auth@v2 '
210
210
with:
211
211
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
212
212
213
213
- name: 'Set up Cloud SDK'
214
- uses: 'google-github-actions/setup-gcloud@v1 '
214
+ uses: 'google-github-actions/setup-gcloud@v2 '
215
215
216
216
- name: 'Use gcloud CLI'
217
217
run: 'gcloud auth list --filter=status:ACTIVE --format="value(account)"'
@@ -224,15 +224,15 @@ jobs:
224
224
We recommend pinning to the latest available major version :
225
225
226
226
` ` ` yaml
227
- - uses: 'google-github-actions/setup-gcloud@v1 '
227
+ - uses: 'google-github-actions/setup-gcloud@v2 '
228
228
` ` `
229
229
230
230
While this action attempts to follow semantic versioning, but we're ultimately
231
231
human and sometimes make mistakes. To prevent accidental breaking changes, you
232
232
can also pin to a specific version :
233
233
234
234
` ` ` yaml
235
- - uses: 'google-github-actions/setup-gcloud@v1 .0.0'
235
+ - uses: 'google-github-actions/setup-gcloud@v2 .0.0'
236
236
` ` `
237
237
238
238
However, you will not get automatic security updates or new features without
0 commit comments