Environment required reviewer
Why Tier 2
Approving a deployment releases the environment's secrets to the job. On a production environment, the approval releases production credentials.
A person or team who must approve a job before it can deploy to an environment such as production.
Available on: Free (public repositories only), Team (public repositories only), Enterprise Cloud, EMU, Server. Source
Attack path
The approval is what releases the environment's secrets to the job. A compromised reviewer, or a reviewer list that includes the person who wrote the change, turns the gate into a formality. On Free, Pro and Team plans required reviewers only work on public repositories.
Mitigations
- Put production secrets in environments with required reviewers
- Turn on "Prevent self-review"
- Use a reviewer team separate from the authors
Detect
Alert on environment.update_protection_rule, environment.add_protection_rule, workflows.approve_workflow_job in the audit log.