Skip to content

Commit 9cf496b

Browse files
authored
Switch to auth@v1 (#238)
There's a chicken-and-egg problem here where we want to have the docs reflect v1 (so the github marketplace shows the right thing), but we can't cut v1 until the docs are updated.
1 parent 44ae44c commit 9cf496b

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
6969
- id: 'auth'
7070
name: 'Authenticate to Google Cloud'
71-
uses: 'google-github-actions/auth@v0'
71+
uses: 'google-github-actions/auth@v1'
7272
with:
7373
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
7474
service_account: '[email protected]'
@@ -218,7 +218,7 @@ regardless of the authentication mechanism.
218218
job_id:
219219
steps:
220220
- uses: 'actions/checkout@v3' # Must come first!
221-
- uses: 'google-github-actions/auth@v0'
221+
- uses: 'google-github-actions/auth@v1'
222222
```
223223
224224
- `export_environment_variables`: (Optional) If true, the action will export
@@ -290,7 +290,7 @@ jobs:
290290
291291
- id: 'auth'
292292
name: 'Authenticate to Google Cloud'
293-
uses: 'google-github-actions/auth@v0'
293+
uses: 'google-github-actions/auth@v1'
294294
with:
295295
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
296296
service_account: '[email protected]'
@@ -318,7 +318,7 @@ jobs:
318318

319319
- id: 'auth'
320320
name: 'Authenticate to Google Cloud'
321-
uses: 'google-github-actions/auth@v0'
321+
uses: 'google-github-actions/auth@v1'
322322
with:
323323
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
324324
```
@@ -344,7 +344,7 @@ jobs:
344344
345345
- id: 'auth'
346346
name: 'Authenticate to Google Cloud'
347-
uses: 'google-github-actions/auth@v0'
347+
uses: 'google-github-actions/auth@v1'
348348
with:
349349
token_format: 'access_token'
350350
# Either user Workload Identity Federation or Service Account Keys. See
@@ -391,7 +391,7 @@ jobs:
391391
# Configure Workload Identity Federation via a credentials file.
392392
- id: 'auth'
393393
name: 'Authenticate to Google Cloud'
394-
uses: 'google-github-actions/auth@v0'
394+
uses: 'google-github-actions/auth@v1'
395395
with:
396396
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
397397
service_account: '[email protected]'
@@ -435,7 +435,7 @@ jobs:
435435
# Configure Workload Identity Federation and generate an access token.
436436
- id: 'auth'
437437
name: 'Authenticate to Google Cloud'
438-
uses: 'google-github-actions/auth@v0'
438+
uses: 'google-github-actions/auth@v1'
439439
with:
440440
token_format: 'access_token' # <--
441441
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
@@ -475,7 +475,7 @@ jobs:
475475
# Configure Workload Identity Federation and generate an access token.
476476
- id: 'auth'
477477
name: 'Authenticate to Google Cloud'
478-
uses: 'google-github-actions/auth@v0'
478+
uses: 'google-github-actions/auth@v1'
479479
with:
480480
token_format: 'id_token' # <--
481481
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
@@ -673,15 +673,15 @@ mappings, see the [GitHub OIDC token documentation](https://docs.github.com/en/a
673673
We recommend pinning to the latest available major version:
674674

675675
```yaml
676-
- uses: 'google-github-actions/auth@v0'
676+
- uses: 'google-github-actions/auth@v1'
677677
```
678678

679679
While this action attempts to follow semantic versioning, but we're ultimately
680680
human and sometimes make mistakes. To prevent accidental breaking changes, you
681681
can also pin to a specific version:
682682

683683
```yaml
684-
- uses: 'google-github-actions/auth@v0.1.1'
684+
- uses: 'google-github-actions/auth@v1.1.1'
685685
```
686686

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

docs/TROUBLESHOOTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Identity, the first step is to ask the `auth` plugin to generate an OAuth access
77
token. Do this by adding `token_format: 'access_token'` to your YAML:
88

99
```yaml
10-
- uses: 'google-github-actions/auth@v0'
10+
- uses: 'google-github-actions/auth@v1'
1111
with:
1212
# ...
1313
token_format: 'access_token'

0 commit comments

Comments
 (0)