aaronsteers/Resolve CI Vars

Resolve variables using a combination of (1) pre-built resolutions, (2) static inputs, and (3) Jinja2 expressions.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jan 1, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: aaronsteers/resolve-ci-vars-action@2e56afab0344bbe03c047dfa39bae559d0291472 # v0.1.6

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
static_inputsVariable assignments in key=value format (multiline string). Each line should be in the format: variable_name=value
jinja_inputsJinja2 expression to evaluate (e.g. user or default_user) no
repoOptional. Target repository to resolve variables for (e.g. `myorg/my-repo``). If not provided, will use the current repository (github.repository) This is useful for resolving variables in a different repo than the one triggering the workflow. If it recommended to leave this omitted unless you are specifically doing cross-repo workflows. no""
prOptional. PR number to resolve variables for (overrides auto-detection from workflow_dispatch inputs). no""
comment_idOptional. Comment ID to resolve variables for (overrides auto-detection from workflow_dispatch inputs). If not provided, can be automatically detected from a 'comment-id' workflow input, or the 'comment' github context. no""
log_outputsWhether to log the resolved value (default false). This can be enabled if inputs and outputs are non-sensitive. you can also use this for sensitive values IIF you are confident you have masked sensitive values using GitHub secret masking. nofalse
non_sensitiveAlias for log_outputs (true = show evaluated output) nofalse
namedescription
customJSON-encoded object with all resolved values
resolved-git-refFull Git ref (refs/heads/... or refs/tags/...)
resolved-git-branchShort branch name (e.g. main, feature/foo)
resolved-git-shaCommit SHA
resolved-git-tagTag name (if applicable)
resolved-repo-nameRepository name (e.g. my-repo)
resolved-repo-ownerRepository owner (user or org)
resolved-repo-name-fullOwner + name (e.g. myorg/my-repo)
pr-source-git-refGit ref of the source (PR head)
pr-source-git-branchBranch name of the source
pr-source-git-shaSHA of the source commit
pr-source-repo-nameSource repo name
pr-source-repo-ownerSource repo owner
pr-source-repo-name-fullFull source repo name (owner/name)
pr-source-repo-is-forkWhether the source repo is a fork of the target repo
pr-target-git-refGit ref of the target (PR base)
pr-target-git-branchBranch name of the target
pr-target-git-shaSHA of the target commit
pr-target-git-tagTag name, if PR targets a tag
pr-target-repo-nameTarget repo name
pr-target-repo-ownerTarget repo owner
pr-target-repo-name-fullFull target repo name (owner/name)
pr-numberPull request number (if applicable)
pr-urlURL to the pull request
pr-titleTitle of the pull request
comment-idID of the triggering comment (if applicable)
comment-urlURL to the triggering comment (if applicable)
run-idGitHub Actions run ID
run-urlURL to the GitHub Actions run
is-prBoolean: whether the current context is a PR
var1Custom user-defined output variable 1
var2Custom user-defined output variable 2
var3Custom user-defined output variable 3