inspira-legal/Get Environment Variables

Fetch repository or deployment-environment variables from GitHub and inject them as environment variables and/or step outputs — without binding the job to a deployment environment.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github-tokenToken used to read variables. The default GITHUB_TOKEN usually cannot read repo/environment variables — use a fine-grained PAT or GitHub App token with "Variables: read" (and "Environments: read" for environment scope).no${{ github.token }}
environmentDeployment environment name to read variables from. Leave empty to fetch repository-level variables instead.no""
repositoryTarget repository in "owner/repo" format. Defaults to the current repository.no${{ github.repository }}
output-toWhere to inject variables: "env", "output", or "all".noall
prefixString prepended to every injected variable name (e.g. "STAGING_").no""
name-caseCase transform for injected names: "none", "upper", or "lower".nonone
includeComma/newline separated glob patterns (`*`, `?`) of variable names to include. Empty means include everything.no""
excludeComma/newline separated glob patterns (`*`, `?`) of variable names to exclude. Exclude always wins over include.no""
overwriteWhen injecting env vars, overwrite names that are already set.notrue
dry-runIf true, do not set anything — only log what would be injected.nofalse
fail-on-emptyFail the action if no variables match after filtering.nofalse
namedescription
variablesJSON object mapping every injected variable name to its value.
namesComma-separated list of injected variable names (after prefix/case).
countNumber of variables injected.