The Tech Meta

An inside look at tech's evolving playbook

Workflow tokens scoped

Secure observed

A repo's workflows say what their GitHub token may do, instead of taking the default rights.

Each workflow says what its GITHUB_TOKEN may do, through a permissions key, rather than taking the repository's default rights, which can include writing to the code. A read-only default at the top of the file, with write rights only on the job that needs them, limits what a compromised step or a hijacked action could do with the token. The site counts a repo when nearly all its workflows set a permissions key other than write-all, at the top or in each of their jobs; a repo with no workflow does not have it.

  • Pro scene today: 41%, 91 of 221 pro repos
  • In three months: +9 pts (22 pro repos added it, 1 removed it)
  • Kept: 93%, 71 of 76 that had it 3 months ago or before

Pro 41% · Ladder 31% · 1.4×

Insight: Most do it in part: the median pro repo scopes it in 78% of its workflows, short of the 90% this row asks; 7 of the 217 in none.

In the pro repos

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

By month

MonthPro scene
June 202510%
July 202510%
August 202510%
September 202511%
October 202513%
November 202515%
December 202516%
January 202616%
February 202618%
March 202620%
April 202623%
May 202624%
June 202627%
July 202629%
August 202629%
September 202632%
October 202634%
November 202638%
today41%

Evidence

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

How it is detected

Looks for a permissions key, other than write-all, at the top of 90% or more of a repo's YAML workflows, or in each of their jobs; a repo with no workflow does not have it. Read in workflow files. How the method counts

Related practices

More in Secure, the most adopted first.

Levels of evidence