The Tech Meta

An inside look at tech's evolving playbook

Environments for CI jobs

Ship observed

Some CI jobs run in a GitHub environment, which can hold their secrets and require an approval.

Some CI jobs run in a named GitHub environment, such as production, staging or a package registry. An environment can hold secrets of its own, require a person's approval before the job starts, limit the branches that may deploy to it, and keep a history of its deployments. Teams use it to keep the keys to production away from every other job. Which protections an environment has is a setting, and is not read. The site counts a repo when a job of one of its workflows has an environment key with a value.

  • Pro scene today: 40%, 88 of 221 pro repos
  • In three months: +9 pts (19 pro repos added it)
  • Kept: 91%, 69 of 76 that had it 3 months ago or before

Pro 40% · Ladder 29% · 1.4×

Insight: Python leads: 26 of the 41 Python repos, 62 of the 180 others. PyPI calls one strongly recommended for trusted publishing.

In the pro repos

The 6 most starred of the 88 pro repos that have it today.

By month

MonthPro scene
June 202517%
July 202516%
August 202517%
September 202517%
October 202519%
November 202520%
December 202520%
January 202623%
February 202624%
March 202624%
April 202626%
May 202627%
June 202629%
July 202629%
August 202630%
September 202631%
October 202632%
November 202636%
today40%

Evidence

Observed in the repos only: no published study is quoted for it yet.

How it is detected

Looks for an environment key on a workflow job. What the environment holds or requires is a setting, not read. Read in workflow files. How the method counts

Related practices

More in Ship, the most adopted first.

Levels of evidence