What Is a File Variable?
A file variable is a pipeline variable that the runner materializes as a temporary file containing the value, then exposes the path to that file rather than the raw content. Tools that require a credential or config file path can point straight at it. It bridges secrets storage and tools that read from files.
Why it matters
Many tools, like cloud CLIs or kubeconfig consumers, expect a path to a credentials file, not an inline string. A file variable supplies that path without the pipeline author hand-writing the file. It keeps multiline secrets like keys and certificates out of inline variables and logs.
Related guides
What Is a Masked Variable?A masked variable is a value the CI runner redacts from log output, replacing it with asterisks so secrets do…
What Is a Protected Variable?A protected variable is a CI variable exposed only to pipelines running on protected branches or tags, keepin…
What Is a CI Environment File?A CI environment file is a runner-provided file a step writes to in order to set environment variables, outpu…