Skip to content

Commit 5e085d9

Browse files
committed
feat(docs): Update authentication documentation
This commit updates the authentication documentation to clarify the use of Workload Identity Federation and Gemini Code Assist. The following changes are included: - Added and to the list of required variables for Workload Identity Federation. - Updated the workflow configuration examples to use the new variables. - Improved the clarity and consistency of the documentation.
1 parent d44d269 commit 5e085d9

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

docs/authentication.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,23 @@ After running the `setup_workload_identity.sh` script, add the following variabl
148148
| Variable Name | Description |
149149
| --------------------------- | ---------------------------------------------------- |
150150
| `GCP_WIF_PROVIDER` | The resource name of the Workload Identity Provider. |
151+
| `SERVICE_ACCOUNT_EMAIL` | The service account with the required permissions. |
151152
| `GOOGLE_CLOUD_PROJECT` | Your Google Cloud project ID. |
152153
| `GOOGLE_CLOUD_LOCATION` | Your Google Cloud project Location. |
153154
| `GOOGLE_GENAI_USE_VERTEXAI` | Set to `true` to use Vertex AI. |
155+
| `GOOGLE_GENAI_USE_GCA` | Set to `true` to use Gemini Code Assist. |
154156

155157
#### Workflow Configuration Example
156158

157159
```yaml
158160
- uses: google-github-actions/run-gemini-cli@main
159161
with:
160-
prompt: "Explain this code"
161-
gcp_workload_identity_provider: ${{ vars.GCP_WIF_PROVIDER }}
162-
gcp_project_id: ${{ vars.GOOGLE_CLOUD_PROJECT }}
163-
gcp_location: ${{ vars.GOOGLE_CLOUD_LOCATION }}
164-
use_vertex_ai: 'true'
162+
prompt: 'Explain this code'
163+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
164+
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
165+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
166+
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
167+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
165168
```
166169
167170
### Connecting to Gemini Code Assist
@@ -188,11 +191,11 @@ After running the `setup_workload_identity.sh` script, add the following variabl
188191
```yaml
189192
- uses: google-github-actions/run-gemini-cli@main
190193
with:
191-
prompt: "Explain this code"
192-
gcp_workload_identity_provider: ${{ vars.GCP_WIF_PROVIDER }}
193-
gcp_project_id: ${{ vars.GOOGLE_CLOUD_PROJECT }}
194-
gcp_service_account: ${{ vars.SERVICE_ACCOUNT_EMAIL }}
195-
use_gemini_code_assist: 'true'
194+
prompt: 'Explain this code'
195+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
196+
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
197+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
198+
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
196199
```
197200

198201
## Additional Resources

0 commit comments

Comments
 (0)