Add or replace an organization checker
set_checkerAdd an organization checker, or replace the one with the same name. A checker is the organization's own HTTPS endpoint that implements Valet's Checker API. Once saved, a release policy can run it as org:: set_policy with that checker. Valet calls the endpoint's describe operation before saving and saves nothing if the call fails.
Saving a checker agrees, for the organization, to send the release files the endpoint asks for (the source, the build, or both) to the URL, for every release that a policy naming the checker evaluates. Once fetched, the files are outside Valet's control. Confirm that with the user before you call this tool. The answer names the files the endpoint asked for; those become the approved files. An endpoint that later asks for more is unavailable until the checker is saved again.
A credential goes in headers only as a {{NAME}} reference to a secret env var of the organization, such as {"Authorization": "Bearer {{SNYK_TOKEN}}"}. Valet resolves the reference at each call. Never put a credential's value in a header: headers are stored and listed as written. Have the user set the variable first with valet env set SNYK_TOKEN=... --org <org>, so the value never passes through this conversation. A reference to a variable that is not a secret of the organization is refused. list_policies shows the organization's checkers. Requires connecting a Valet account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Required. The endpoint's base URL, https only, with no query or fragment, such as https://checks.example.com/snyk. Valet appends /v1/describe and so on. It must be a public address. | |
| checker | Yes | Required. The checker's name: lowercase letters, digits, and hyphens, such as snyk. Policies name it org:snyk, and org:snyk is accepted here too. An existing name is replaced. | |
| headers | No | Headers Valet sends on every call, as name to value. A credential's value must be a {{NAME}} reference to a secret env var of the organization, such as Bearer {{SNYK_TOKEN}}. Up to 16. | |
| org_name | No | The Valet organization that owns the checker. Omit to use the organization the account joined first. |