kosa8 docs

Commands / kosa8 cloud pipelines hook create

kosa8 cloud pipelines hook create

Make a webhook URL for a repository (and optionally a cron schedule)

Usage

kosa8 cloud pipelines hook create REPO_URL

Prints the webhook URL and its signing secret, once: add both to the repository's webhooks (GitHub: Settings > Webhooks, content type JSON, push and pull request events; GitLab: X-Gitlab-Token). kosa8 makes the secret unless --secret-stdin reads yours. --cron also runs it on that schedule (UTC).

Options

FlagTypeWhat it doesDefault
--cronstringalso run on this cron schedule (UTC)—
--cron-refstringthe ref a scheduled run builds (default: the default branch)—
--namestringa name for the hook—
--providerstringgithub or gitlab (default: from the URL)—
--secretstringArrayhand this secret (marked --pipelines) to the jobs (repeatable)[]
--secret-stdinboolread the webhook signing secret from stdin instead of making one—
--sizestringsandbox size for each job, e.g. 4x8—
--status-secretstringthe secret that posts commit statuses—
--timeoutdurationstop each run after this long0s
--token-secretstringthe secret that clones a private repository—
--workflowstringonly this file in .github/workflows—

Example

  kosa8 cloud pipelines hook create https://github.com/acme/app --secret npm-token
  kosa8 cloud pipelines hook create https://gitlab.com/acme/app --cron '0 3 * * *' --cron-ref main