{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/argo-workflows/refs/heads/main/json-schema/argo-workflows-github-com-argoproj-argo-events-pkg-apis-events-v1alpha1-github-event-source-schema.json", "title": "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubEventSource", "description": "github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubEventSource schema from Argo Workflows API", "type": "object", "properties": { "active": { "type": "boolean", "title": "Active refers to status of the webhook for event deliveries.\nhttps://developer.github.com/webhooks/creating/#active\n+optional" }, "apiToken": { "title": "APIToken refers to a K8s secret containing github api token\n+optional", "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" }, "contentType": { "type": "string", "title": "ContentType of the event delivery" }, "deleteHookOnFinish": { "type": "boolean", "title": "DeleteHookOnFinish determines whether to delete the GitHub hook for the repository once the event source is stopped.\n+optional" }, "events": { "type": "array", "title": "Events refer to Github events to which the event source will subscribe", "items": { "type": "string" } }, "filter": { "title": "Filter\n+optional", "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.EventSourceFilter" }, "githubApp": { "title": "GitHubApp holds the GitHub app credentials\n+optional", "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.GithubAppCreds" }, "githubBaseURL": { "type": "string", "title": "GitHub base URL (for GitHub Enterprise)\n+optional" }, "githubUploadURL": { "type": "string", "title": "GitHub upload URL (for GitHub Enterprise)\n+optional" }, "id": { "type": "string", "title": "Id is the webhook's id\nDeprecated: This is not used at all, will be removed in v1.6\n+optional" }, "insecure": { "type": "boolean", "title": "Insecure tls verification" }, "metadata": { "type": "object", "title": "Metadata holds the user defined metadata which will passed along the event payload.\n+optional", "additionalProperties": { "type": "string" } }, "organizations": { "description": "Organizations holds the names of organizations (used for organization level webhooks). Not required if Repositories is set.", "type": "array", "items": { "type": "string" } }, "owner": { "type": "string", "title": "DeprecatedOwner refers to GitHub owner name i.e. argoproj\nDeprecated: use Repositories instead. Will be unsupported in v 1.6\n+optional" }, "repositories": { "description": "Repositories holds the information of repositories, which uses repo owner as the key,\nand list of repo names as the value. Not required if Organizations is set.", "type": "array", "items": { "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.OwnedRepositories" } }, "repository": { "type": "string", "title": "DeprecatedRepository refers to GitHub repo name i.e. argo-events\nDeprecated: use Repositories instead. Will be unsupported in v 1.6\n+optional" }, "webhook": { "title": "Webhook refers to the configuration required to run a http server", "$ref": "#/definitions/github.com.argoproj.argo_events.pkg.apis.events.v1alpha1.WebhookContext" }, "webhookSecret": { "title": "WebhookSecret refers to K8s secret containing GitHub webhook secret\nhttps://developer.github.com/webhooks/securing/\n+optional", "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" } } }