configuration variable
A plain, non-secret setting stored in GitHub at repository, organization or environment level and read through the vars context.
In more detail
Unlike a secret it is printed in logs in full. It suits values such as region names, image tags and endpoints, never passwords.
Example
echo "target is ${{ vars.API_URL }}"Related terms
- secret — Any value that grants access, such as a password, access token or private key, and must be kept out of code and version control.
- deployment environment — A named target such as staging or production that a job declares, so GitHub can attach its own variables, secrets and protection rules.
Taught in
- Securing Pipelines: Secrets Management — Continuous Integration & Continuous Delivery Pipelines
- Defining Environments in GitHub Actions — Continuous Integration & Continuous Delivery Pipelines
- Triggers In Depth: Filters, Schedules And Dispatch — GitHub Actions (GH-200) Exam Prep
- Expressions, Contexts And The If That Is Always True — GitHub Actions (GH-200) Exam Prep
- Failed Runs: Debug Logging And Re-Running The Right Jobs — GitHub Actions (GH-200) Exam Prep
- Secrets And Variables By Scope: Precedence, Access And The REST API — GitHub Actions (GH-200) Exam Prep
- Environments: Reviewers, Wait Timers And Deployment Rules — GitHub Actions (GH-200) Exam Prep