Skip to content

Commit 39ac385

Browse files
authored
fix: Access variables PALLET_SERVICE_ACCOUNT and PALLET_WORKLOAD_IDENTITY_PROVIDER correctly (#119)
1 parent 9dd4e69 commit 39ac385

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/renovate.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ on:
3232
description: |
3333
Full identifier of the Workload Identity Provider,
3434
e.g. projects/889992792607/locations/global/workloadIdentityPools/github-actions/providers/github-actions-provider
35-
Defaults to `env.PALLET_WORKLOAD_IDENTITY_PROVIDER`.
35+
Defaults to `vars.PALLET_WORKLOAD_IDENTITY_PROVIDER`.
3636
gcp-service-account:
3737
type: string
3838
required: false
3939
description: |
4040
Email address or unique identifier of the Google Cloud service
4141
account for which to impersonate and generate credentials.
42-
Defaults to `env.PALLET_SERVICE_ACCOUNT`.
42+
Defaults to `vars.PALLET_SERVICE_ACCOUNT`.
4343
secrets: {}
4444

4545
jobs:
@@ -101,11 +101,11 @@ jobs:
101101
service_account="${{ inputs.gcp-service-account }}"
102102
103103
if [ -z "$provider" ]; then
104-
provider="${{ env.PALLET_WORKLOAD_IDENTITY_PROVIDER }}"
104+
provider="${{ vars.PALLET_WORKLOAD_IDENTITY_PROVIDER }}"
105105
fi
106106
107107
if [ -z "$service_account" ]; then
108-
service_account="${{ env.PALLET_SERVICE_ACCOUNT }}"
108+
service_account="${{ vars.PALLET_SERVICE_ACCOUNT }}"
109109
fi
110110
111111
echo "gcp_workload_identity_provider=$provider" >> "$GITHUB_OUTPUT"

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ inputs:
8181
description: |
8282
Full identifier of the Workload Identity Provider,
8383
e.g. projects/889992792607/locations/global/workloadIdentityPools/github-actions/providers/github-actions-provider
84-
Defaults to `env.PALLET_WORKLOAD_IDENTITY_PROVIDER`.
84+
Defaults to `vars.PALLET_WORKLOAD_IDENTITY_PROVIDER`.
8585
gcp-service-account:
8686
type: string
8787
required: false
8888
description: |
8989
Email address or unique identifier of the Google Cloud service
9090
account for which to impersonate and generate credentials.
91-
Defaults to `env.PALLET_SERVICE_ACCOUNT`.
91+
Defaults to `vars.PALLET_SERVICE_ACCOUNT`.
9292
```
9393
9494
This job can be added to your workflow as follows:

0 commit comments

Comments
 (0)