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¶
env-alias:
REPOSITORY_DEFAULT_BRANCH:
source: "https://api.github.com/repos/threatpatrols/env-alias"
parser: "json"
selector: ".default_branch"
Walkthrough:
source:is an HTTP(S) URL, so env-alias performs aGETrequest to fetch it — no curl, no shell.parser: jsondeserialises the response.selector: ".default_branch"pulls out a stable scalar value instead of depending on the order of a live list.