GitHub environment
A named deployment target in GitHub, such as production, that can require reviewers to approve before a job using it runs.
In more detail
When a job uses an environment, the OIDC sub claim names that environment. Pinning the trust policy to an environment with required reviewers means credentials are only issued after approval.
Related terms
- GitHub Actions — GitHub's built-in automation service that runs workflows, written as YAML files in a repository, on runners when events happen.
- claim — One statement inside a token, as a name and value, such as sub (subject), exp (expiry), iss (issuer), aud (audience) or scope.
- trust policy — A JSON document on a cloud role that says who may assume the role and under which conditions.
Taught in
- Workload Identity Federation: Eliminating Static Keys — Cloud Security & DevSecOps Engineering
- Shift-Left Security Principles & Automated Pipeline Gates — Cloud Security & DevSecOps Engineering