gcloud alpha builds enterprise-config github update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha builds enterprise-config github update - update github enterprise config used by Cloud Build
- SYNOPSIS
gcloud alpha builds enterprise-config github updateCONFIG[--app-id=APP_ID][--host-uri=HOST_URI][--region=REGION][--webhook-key=WEBHOOK_KEY][[--gcs-bucket=GCS_BUCKET--gcs-object=GCS_OBJECT:--generation=GENERATION] | [--oauth-client-id-name=OAUTH_CLIENT_ID_NAME--oauth-secret-name=OAUTH_SECRET_NAME--private-key-name=PRIVATE_KEY_NAME--webhook-secret-name=WEBHOOK_SECRET_NAME:--oauth-client-id-version-name=OAUTH_CLIENT_ID_VERSION_NAME--oauth-secret-version-name=OAUTH_SECRET_VERSION_NAME--private-key-version-name=PRIVATE_KEY_VERSION_NAME--webhook-secret-version-name=WEBHOOK_SECRET_VERSION_NAME]][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Update github enterprise config used by Cloud Build.- POSITIONAL ARGUMENTS
CONFIG- The unique identifier of the GitHub Enterprise Config to be updated.
- FLAGS
--app-id=APP_ID- The app id of the GitHub app that should be associated with this config.
--host-uri=HOST_URI- The host uri of the GitHub Enterprise Server.
--region=REGION- The region of the Cloud Build Service to use. Must be set to a supported regionname (e.g.
us-central1). If unset,builds/region,which is the default region to use when working with Cloud Build resources, isused. If builds/region is unset, region is set toglobal. Note:Region must be specified in 2nd gen repo;globalis not supported. --webhook-key=WEBHOOK_KEY- The unique identifier that Cloud Build expects to be set as the value for thequery field
webhook_keyon incoming webhook requests.If this is not set, Cloud Build will generate one on the user's behalf.
- At most one of these can be specified:
- Cloud Storage location of the GitHub App credentials:
--gcs-bucket=GCS_BUCKET- The Cloud Storage bucket containing the credential payload.
This flag argument must be specified if any of the other arguments in this groupare specified.
--gcs-object=GCS_OBJECT- The Cloud Storage object containing the credential payload.
This flag argument must be specified if any of the other arguments in this groupare specified.
--generation=GENERATION- The object generation to read the credential payload from.
If this is not set, Cloud Build will read the latest version.
- Secret Manager resources of the GitHub App credentials:
--oauth-client-id-name=OAUTH_CLIENT_ID_NAME- Secret Manager resource containing the oauth client id.
This flag argument must be specified if any of the other arguments in this groupare specified.
--oauth-secret-name=OAUTH_SECRET_NAME- Secret Manager resource containing the oauth secret.
This flag argument must be specified if any of the other arguments in this groupare specified.
--private-key-name=PRIVATE_KEY_NAME- Secret Manager resource containing the private key.
This flag argument must be specified if any of the other arguments in this groupare specified.
--webhook-secret-name=WEBHOOK_SECRET_NAME- Secret Manager resource containing the webhook key.
This flag argument must be specified if any of the other arguments in this groupare specified.
--oauth-client-id-version-name=OAUTH_CLIENT_ID_VERSION_NAME- Secret Manager SecretVersion resource containing the oauth client id.
--oauth-secret-version-name=OAUTH_SECRET_VERSION_NAME- Secret Manager SecretVersion resource containing the oauth secret.
--private-key-version-name=PRIVATE_KEY_VERSION_NAME- Secret Manager SecretVersion resource containing the private key.
--webhook-secret-version-name=WEBHOOK_SECRET_VERSION_NAME- Secret Manager SecretVersion resource containing the webhook key.
- Cloud Storage location of the GitHub App credentials:
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.