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

推荐订阅源

D
DataBreaches.Net
F
Fortinet All Blogs
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
罗磊的独立博客
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
U
Unit 42
N
Netflix TechBlog - Medium
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Stack Overflow Blog
Stack Overflow Blog
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Proofpoint News Feed
G
Google Developers Blog
H
Help Net Security

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
Dependabot can finally pull from private GitHub Packages ...
Leo · 2026-06-24 · via DEV Community

Leo

The first time I wired Dependabot up to a private package registry, it took three meetings and a calendar reminder set six months ahead. The reminder was for the personal access token I had to mint to do it, the one I would have to rotate by hand before it expired, living in a config that drifted somewhere between repo settings, a .github file, and an internal wiki page nobody had touched in a year. On June 23 GitHub posted a small changelog item that quietly retires that whole ritual: Dependabot can now read your private GitHub Packages and GHCR registries through its own GITHUB_TOKEN, no PAT required.

If you have ever had to explain to a security review why your bot account holds a token your team owns but a person minted, you already know why this lands.

The PAT we all had and nobody loved

Until this week, Dependabot's path to a private GitHub-hosted package was the same path it took years ago. A human minted a personal access token, scoped wide enough to read the registry, stored it as a repo or org secret, and plugged it into Dependabot so the bot could authenticate when it tried to resolve dependencies. That token expired on a human schedule. It belonged to whoever happened to set Dependabot up, which is rarely the person who still owns the repo a year later.

You can feel how that ends. Tokens that quietly expire and break a Dependabot PR the day someone needs the patch. Tokens that follow an offboarded engineer out the door. Tokens with scopes wider than the job actually requires, because nobody wanted to mint a fine-grained one per registry path. None of those failures are catastrophic on their own. All of them are the kind of papercut a platform team ends up owning.

What the GITHUB_TOKEN does here

The new behavior is straightforward. Dependabot's job-scoped GITHUB_TOKEN can now request a packages: read permission. When the bot pulls from a hostname under *.pkg.github.com or ghcr.io, it sends that token instead of asking for a PAT. The same token that already authenticates Dependabot's commits and PRs now does its package reads too.

The authorization side reuses something you may already have configured. GitHub Packages has a feature called Manage Actions access, which lets a package grant repositories permission to pull it inside Actions workflows. If a package has already granted access to the repository where Dependabot is running, that same grant now accepts Dependabot's token, exactly the way it accepts a regular Actions workflow. Per the changelog, this lights up across every GitHub Packages ecosystem Dependabot supports, so npm, Maven, NuGet, Docker images and friends all benefit without a per-ecosystem opt-in.

If you read CI credential changes for a living, the shape will feel familiar. Take a job-scoped ephemeral token that already exists, hand it one more carefully bounded permission, and stop asking humans to broker an auth flow.

How this lands in a real repo

The friction removal is mostly invisible, which is the point. If you currently have a Dependabot setup that leans on a PAT for private GitHub Packages, you can audit the package's Manage Actions access list, confirm the consuming repo is on it, drop the PAT from your Dependabot secrets, and let the bot pick up the next scheduled run with the new flow.

There is no new YAML to learn for the simple case. The interesting work is on the package side: walking through which repos a package grants, deciding whether that grant list is still right, deleting the rows that belong to repos that no longer exist. That used to be invisible plumbing. It is now the plumbing.

Where the friction still lives

A few honest caveats before you rip out every Dependabot PAT in the org.

This only covers GitHub-hosted registries. If Dependabot pulls from a private npm registry on your own infrastructure, an internal Artifactory, or a third-party host, you are still in PAT or service-account territory there. The change narrows the credential surface; it does not erase it.

The grant model also assumes someone is actually curating the Manage Actions access list per package. On a team that ships dozens of internal packages, that list drifts fast. It is worth standing up a quarterly check, the same way you probably already audit deploy keys and webhook secrets.

And a token getting smaller in scope is good news for the day it leaks and a quieter cause of "why did Dependabot stop opening PRs" the next time someone forgets to add a new repo to the grant list. Pick your problem.

What I am watching next

I want to see how this plays with packages that were never meant to be consumed by Actions in the first place. Some of the oldest internal libraries I work with have grant lists that predate the current UI, and I expect the first thing teams find when they look is that the grants are out of date. That is not really a regression, just the cost of moving a control from "personal credential" to "explicit grant".

If your Dependabot config still references a PAT in a secret called something like <DEPENDABOT_PACKAGES_PAT>, this week is a good week to find out whether you still need it. Most teams will not. Most teams will also discover they had three more lying around.