You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit enhances the `setup_workload_identity.sh` script to improve
usability and flexibility when configuring Direct Workload Identity
Federation between Google Cloud and GitHub.
Key improvements include:
- **Custom Provider Names:** Users can now specify a custom name for the
Workload Identity Provider using the `--provider-name` flag. This
provides more control over resource naming. If not provided, a unique
name is automatically generated based on the repository hash.
- **Mandatory Project ID:** Make it clear that `--project` flag is
required to prevent accidental misconfiguration and ensure the script
targets the correct Google Cloud project. The script no longer attempts
to auto-detect the project ID.
- **Improved Help and Examples:** The help text and usage examples have
been updated to reflect the new `--provider-name` flag and the mandatory
`--project` requirement.
These changes make the script more robust and user-friendly for setting
up secure authentication from GitHub Actions to Google Cloud.
`<OWNER/REPO>`: Your GitHub repository in the format `owner/repo`. Here, `OWNER` means your GitHub organization (for organization-owned repos) or username (for user-owned repos).
99
-
100
-
`<PROJECT_ID>`: Your Google Cloud `project_id`.
98
+
**Required Parameters:**
99
+
-`OWNER/REPO`: Your GitHub repository in the format `owner/repo`. Here, `OWNER` means your GitHub organization (for organization-owned repos) or username (for user-owned repos).
100
+
-`GOOGLE_CLOUD_PROJECT`: Your Google Cloud project ID.
0 commit comments