惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 【当耐特】
The Cloudflare Blog
B
Blog
Last Week in AI
Last Week in AI
小众软件
小众软件
量子位
S
SegmentFault 最新的问题
V
Visual Studio Blog
博客园 - 叶小钗
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
A
About on SuperTechFans
雷峰网
雷峰网
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Who actually has admin access to your GitHub repos? Most ...
Abhishek Cho · 2026-05-10 · via DEV Community

Your team has been on GitHub for years. Engineers join, get added to repos, move teams, get promoted, sometimes leave. Access piles up quietly.

Here's a question most engineering leads can't answer without clicking through a dozen GitHub settings pages:

Who has admin access to your production repos right now?

Not who should. Who does.

I spent the last few weeks building a tool to answer that — and then ran it against a few orgs (with permission). What I found was uncomfortable enough that I'm writing this post.


The access drift problem

GitHub's access model is powerful but silent. There's no built-in alert when:

  • An engineer who left 6 months ago still has write access to your main repo
  • A contractor was given admin "temporarily" and never had it revoked
  • Your staging repo has 11 admins because everyone who ever set it up still has access
  • An outside collaborator — someone not even in your org — can push to production

None of these show up in any dashboard. You have to go looking. And almost nobody does, because going looking means clicking through dozens of repos, teams, and user profiles one by one.

This is what the security world calls access sprawl — and it's nearly universal in teams that have been on GitHub for more than a year.


What I built

I built gh-iga — an open-source identity governance scanner for GitHub.

One command. 60 seconds. A full picture of who has access to what, and a report you can actually share.

gh-iga scan --org your-org

Enter fullscreen mode Exit fullscreen mode

  gh-iga — Identity Governance Scanner for GitHub
  ─────────────────────────────────────────────────
  Org:      acme-corp
  Members:  84       Teams: 12       Repos: 203

  RISK FINDINGS
  ✗  12 users have admin access to 5+ repos (admin sprawl)
  ✗   8 outside collaborators have write or admin access
  ✗  19 users inactive 90+ days still hold write/admin
  ✗   6 repos have 4+ admins (over-permissioned)
  ⚠   31 users on no team and no direct repo access (orphaned)
  ⚠   14 users with direct repo access could move to teams

  Report written → gh-iga-acme-corp-20260509.html

Enter fullscreen mode Exit fullscreen mode

It also produces a self-contained HTML report you can hand to an auditor, a Markdown report you can paste into a GitHub issue, and JSON output you can pipe into your SIEM or Splunk.

No dashboards to set up. No agent to deploy. Just a token and a command.


What it flags

High severity

  • 🔴 Admin sprawl — users with admin on more than N repos (configurable, default 5)
  • 🔴 Inactive privileged users — no activity in 90+ days but still holds write or admin
  • 🔴 Privileged outside collaborators — externals with write or admin on any repo

Medium severity

  • 🟡 Over-permissioned repos — more than N admins on a single repo
  • 🟡 Orphaned members — in the org but on no team and no repo

Hygiene

  • 🔵 Direct access candidates — users with redundant direct grants already covered by a team

Every threshold is configurable. The defaults are reasonable but your org might want tighter rules.


No org? No problem.

You don't need a GitHub org to use it. If you're a solo developer or working with personal repos:

gh-iga scan-user

Enter fullscreen mode Exit fullscreen mode

This scans all your personal repos, shows every collaborator and their permission level, and flags anything worth reviewing. Good habit before you open-source something or hand off a project.


Getting started

Prerequisites: Python 3.9+, Git

# Clone and install
git clone https://github.com/abhishek20c/gh-iga.git
cd gh-iga
pip install -e .

# Create a token at github.com/settings/tokens
# Scopes needed: repo, read:org (for org scan)

# Run
export GITHUB_TOKEN=ghp_your_token_here
gh-iga scan-user          # personal repos
gh-iga scan --org myorg   # org scan

Enter fullscreen mode Exit fullscreen mode

The tool is read-only by design. It will never modify your org, repos, or permissions. Your token is never written to disk or included in any output.


Run it in CI too

Drop this in your GitHub Actions and get a weekly access review automatically:

name: Weekly access review
on:
  schedule:
    - cron: '0 9 * * 1'  # every Monday 9am
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: pip install gh-iga
      - run: gh-iga scan --org ${{ github.repository_owner }}
        env:
          GITHUB_TOKEN: ${{ secrets.GH_IGA_TOKEN }}
      - uses: actions/upload-artifact@v4
        with:
          name: access-report
          path: gh-iga-*.html

Enter fullscreen mode Exit fullscreen mode



Apache 2.0 licensed. The codebase is clean Python — scanner.py handles the GitHub API calls, rules.py is where all the flag logic lives (easy to add new rules), and the reports are Jinja2 templates.

If you find it useful, a ⭐ on GitHub goes a long way for visibility.


What I've learned

Access governance is one of those things that every team knows they should do and almost no team actually does — because the tooling either doesn't exist, costs money, or requires a two-week implementation project.

The goal with gh-iga is to make it something you actually do: one command, runs in 60 seconds, gives you a shareable report. Low enough friction that it becomes a habit.

If you run it and find something surprising in your org — I'd love to hear about it in the comments.


Built with Python, requests, rich, and jinja2. Runs anywhere Python runs.
github.com/abhishek20c/gh-iga