Skip to content

Commit 87d5265

Browse files
authored
Update README and CI to use latest version (#665)
1 parent 8251968 commit 87d5265

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.github/workflows/integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595

9696
# Authenticate via WIF
9797
- name: 'Authenticate via WIF'
98-
uses: 'google-github-actions/auth@main'
98+
uses: 'google-github-actions/auth@v2'
9999
with:
100100
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
101101
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
@@ -111,7 +111,7 @@ jobs:
111111

112112
# Authenticate via SAKE
113113
- name: 'Authenticate via SAKE'
114-
uses: 'google-github-actions/auth@main'
114+
uses: 'google-github-actions/auth@v2'
115115
with:
116116
credentials_json: '${{ secrets.SERVICE_ACCOUNT_KEY_JSON }}'
117117

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

@@ -74,7 +74,7 @@ jobs:
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
```
@@ -89,7 +89,7 @@ jobs:
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'
@@ -173,7 +173,7 @@ job:
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)"'
206206
207207
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:
224224
We 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

230230
While this action attempts to follow semantic versioning, but we're ultimately
231231
human and sometimes make mistakes. To prevent accidental breaking changes, you
232232
can 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

238238
However, you will not get automatic security updates or new features without

0 commit comments

Comments
 (0)