Workflow tokens scoped
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.
- huggingface/transformers/.github/workflows
- langchain-ai/langchain/.github/workflows
- supabase/supabase/.github/workflows
- Stirling-Tools/Stirling-PDF/.github/workflows
- infiniflow/ragflow/.github/workflows
- lobehub/lobehub/.github/workflows
By month
| Month | Pro scene |
|---|---|
| June 2025 | 10% |
| July 2025 | 10% |
| August 2025 | 10% |
| September 2025 | 11% |
| October 2025 | 13% |
| November 2025 | 15% |
| December 2025 | 16% |
| January 2026 | 16% |
| February 2026 | 18% |
| March 2026 | 20% |
| April 2026 | 23% |
| May 2026 | 24% |
| June 2026 | 27% |
| July 2026 | 29% |
| August 2026 | 29% |
| September 2026 | 32% |
| October 2026 | 34% |
| November 2026 | 38% |
| today | 41% |
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.