Skip to content

Remote Configuration

Fetch live values directly from an HTTP(S) endpoint and pick a single item out of the response — no shell, no scripts, no temporary files.

Example

source parser selector

env-alias:

  REPOSITORY_DEFAULT_BRANCH:
    source: "https://api.github.com/repos/threatpatrols/env-alias"
    parser: "json"
    selector: ".default_branch"

Walkthrough:

  1. source: is an HTTP(S) URL, so env-alias performs a GET request to fetch it — no curl, no shell.
  2. parser: json deserialises the response.
  3. selector: ".default_branch" pulls out a stable scalar value instead of depending on the order of a live list.