Update README to reference v3 (#511)
This commit is contained in:
parent
7c6bc770da
commit
0dfce0c0f8
3 changed files with 15 additions and 15 deletions
10
README.md
10
README.md
|
|
@ -60,7 +60,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v4'
|
- uses: 'actions/checkout@v4'
|
||||||
|
|
||||||
- uses: 'google-github-actions/auth@v2'
|
- uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
project_id: 'my-project'
|
project_id: 'my-project'
|
||||||
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
||||||
|
|
@ -249,7 +249,7 @@ regardless of the authentication mechanism.
|
||||||
job_id:
|
job_id:
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v4' # Must come first!
|
- uses: 'actions/checkout@v4' # Must come first!
|
||||||
- uses: 'google-github-actions/auth@v2'
|
- uses: 'google-github-actions/auth@v3'
|
||||||
```
|
```
|
||||||
|
|
||||||
- `export_environment_variables`: (Optional) If true, the action will export
|
- `export_environment_variables`: (Optional) If true, the action will export
|
||||||
|
|
@ -434,7 +434,7 @@ These instructions use the [gcloud][gcloud] command-line tool.
|
||||||
Actions YAML:
|
Actions YAML:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: 'google-github-actions/auth@v2'
|
- uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
project_id: 'my-project'
|
project_id: 'my-project'
|
||||||
workload_identity_provider: '...' # "projects/123456789/locations/global/workloadIdentityPools/github/providers/my-repo"
|
workload_identity_provider: '...' # "projects/123456789/locations/global/workloadIdentityPools/github/providers/my-repo"
|
||||||
|
|
@ -598,7 +598,7 @@ These instructions use the [gcloud][gcloud] command-line tool.
|
||||||
Actions YAML:
|
Actions YAML:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: 'google-github-actions/auth@v2'
|
- uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
service_account: '...' # my-service-account@my-project.iam.gserviceaccount.com
|
service_account: '...' # my-service-account@my-project.iam.gserviceaccount.com
|
||||||
workload_identity_provider: '...' # "projects/123456789/locations/global/workloadIdentityPools/github/providers/my-repo"
|
workload_identity_provider: '...' # "projects/123456789/locations/global/workloadIdentityPools/github/providers/my-repo"
|
||||||
|
|
@ -667,7 +667,7 @@ These instructions use the [gcloud][gcloud] command-line tool.
|
||||||
the GitHub Actions YAML:
|
the GitHub Actions YAML:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: 'google-github-actions/auth@v2'
|
- uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' # Replace with the name of your GitHub Actions secret
|
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' # Replace with the name of your GitHub Actions secret
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
id-token: 'write'
|
id-token: 'write'
|
||||||
|
|
||||||
- id: 'auth'
|
- id: 'auth'
|
||||||
uses: 'google-github-actions/auth@v2'
|
uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
project_id: 'my-project'
|
project_id: 'my-project'
|
||||||
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
||||||
|
|
@ -45,7 +45,7 @@ jobs:
|
||||||
contents: 'read'
|
contents: 'read'
|
||||||
id-token: 'write'
|
id-token: 'write'
|
||||||
|
|
||||||
- uses: 'google-github-actions/auth@v2'
|
- uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
project_id: 'my-project'
|
project_id: 'my-project'
|
||||||
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
||||||
|
|
@ -56,7 +56,7 @@ jobs:
|
||||||
# the service account, specify the 'token_format' parameter and use the
|
# the service account, specify the 'token_format' parameter and use the
|
||||||
# 'accesss_token' output.
|
# 'accesss_token' output.
|
||||||
#
|
#
|
||||||
# - uses: 'google-github-actions/auth@v2'
|
# - uses: 'google-github-actions/auth@v3'
|
||||||
# with:
|
# with:
|
||||||
# workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
# workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
||||||
# service_account: 'my-service-account@my-project.iam.gserviceaccount.com'
|
# service_account: 'my-service-account@my-project.iam.gserviceaccount.com'
|
||||||
|
|
@ -79,7 +79,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v4'
|
- uses: 'actions/checkout@v4'
|
||||||
|
|
||||||
- uses: 'google-github-actions/auth@v2'
|
- uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
|
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
|
||||||
```
|
```
|
||||||
|
|
@ -100,7 +100,7 @@ jobs:
|
||||||
- uses: 'actions/checkout@v4'
|
- uses: 'actions/checkout@v4'
|
||||||
|
|
||||||
- id: 'auth'
|
- id: 'auth'
|
||||||
uses: 'google-github-actions/auth@v2'
|
uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
project_id: 'my-project'
|
project_id: 'my-project'
|
||||||
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
||||||
|
|
@ -136,7 +136,7 @@ jobs:
|
||||||
- uses: 'actions/checkout@v4'
|
- uses: 'actions/checkout@v4'
|
||||||
|
|
||||||
- id: 'auth'
|
- id: 'auth'
|
||||||
uses: 'google-github-actions/auth@v2'
|
uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
token_format: 'access_token' # <--
|
token_format: 'access_token' # <--
|
||||||
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
||||||
|
|
@ -173,7 +173,7 @@ jobs:
|
||||||
- uses: 'actions/checkout@v4'
|
- uses: 'actions/checkout@v4'
|
||||||
|
|
||||||
- id: 'auth'
|
- id: 'auth'
|
||||||
uses: 'google-github-actions/auth@v2'
|
uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
token_format: 'id_token' # <--
|
token_format: 'id_token' # <--
|
||||||
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
||||||
|
|
@ -223,7 +223,7 @@ jobs:
|
||||||
- uses: 'actions/checkout@v4'
|
- uses: 'actions/checkout@v4'
|
||||||
|
|
||||||
- id: 'auth'
|
- id: 'auth'
|
||||||
uses: 'google-github-actions/auth@v2'
|
uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
|
||||||
service_account: 'my-service-account@my-project.iam.gserviceaccount.com'
|
service_account: 'my-service-account@my-project.iam.gserviceaccount.com'
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v4'
|
- uses: 'actions/checkout@v4'
|
||||||
- uses: 'google-github-actions/auth@v2'
|
- uses: 'google-github-actions/auth@v3'
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Ensure the value for `workload_identity_provider` is the full _Provider_
|
1. Ensure the value for `workload_identity_provider` is the full _Provider_
|
||||||
|
|
@ -266,7 +266,7 @@ Alternatively, you can use the `token_format` parameter of this action to
|
||||||
generate an ID token directly:
|
generate an ID token directly:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: 'google-github-actions/auth@v2'
|
- uses: 'google-github-actions/auth@v3'
|
||||||
with:
|
with:
|
||||||
workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
|
workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
|
||||||
service_account: ${{ secrets.WIF_SERVICE_ACCOUNT }}
|
service_account: ${{ secrets.WIF_SERVICE_ACCOUNT }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue