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

推荐订阅源

D
Docker
Simon Willison's Weblog
Simon Willison's Weblog
H
Help Net Security
F
Fortinet All Blogs
H
Heimdal Security Blog
S
Schneier on Security
L
LangChain Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
NISL@THU
NISL@THU
P
Palo Alto Networks Blog
J
Java Code Geeks
博客园 - 【当耐特】
The Last Watchdog
The Last Watchdog
W
WeLiveSecurity
www.infosecurity-magazine.com
www.infosecurity-magazine.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
I
InfoQ
Recorded Future
Recorded Future
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
CERT Recently Published Vulnerability Notes
T
Tenable Blog
腾讯CDC
C
Check Point Blog
量子位
M
MIT News - Artificial intelligence
GbyAI
GbyAI
罗磊的独立博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog
小众软件
小众软件
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
CXSECURITY Database RSS Feed - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
V2EX - 技术
V2EX - 技术
T
Threatpost
Engineering at Meta
Engineering at Meta
Attack and Defense Labs
Attack and Defense Labs
T
Tailwind CSS Blog
S
Securelist
The Cloudflare Blog
博客园 - 叶小钗
L
LINUX DO - 最新话题
T
Troy Hunt's Blog
C
Cyber Attacks, Cyber Crime and Cyber 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 Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Hit GitHub Actions limits too many times so I self hosted the CI in my living room
Stefan Iancu · 2026-06-22 · via DEV Community

This was the second month in a row I hit the GitHub Actions minutes limit. And I'd already switched to Pro to get more - 3,000 minutes a month for private repos, at the time of writing. The bill creeps from the €4-ish I actually want to pay into double digits, and for what? Running the same builds I could run on hardware I already own.

So I decided it was enough. I moved all of it onto self-hosted GitHub Actions runners: one small cloud box for deploys, and a 16GB mini PC sitting in my living room for the heavy lifting. Billed CI minutes are now zero. Here's exactly how.

Where the minutes actually went

First thing I did was stop guessing and look at what was eating the budget. It wasn't the deploys. Push to main, build two images, ship - that's a couple of minutes a few times a day. Annoying but not 3,000-minutes-a-month annoying.

The killer was a nightly cron that runs a batch of build-and-boot tests. It's a few dozen small jobs, each one building an image and booting it to make sure nothing's quietly broken. They run on every relevant pull request, and once more every night to catch base images drifting underneath us.

Self-hosted runners don't burn billed minutes

Here's the thing most people miss when they look at that bill: GitHub only charges for GitHub-hosted runners. A self-hosted runner doesn't consume your included minutes at all. The compute is yours, so GitHub stops counting.

That reframes the whole problem. I don't need to make CI cheaper. I need to run it somewhere I already pay for.

I briefly looked at the heavyweight option - the "run your own CI platform" tools like OVH CDS. They're genuinely good if you're an org with hundreds of pipelines and a team to babysit a distributed system. For one person trying to save €6 a month, standing up a fleet of microservices with its own database to replace 40 lines of YAML is the definition of a cure worse than the disease. I closed that tab.

A GitHub Actions self-hosted runner is the opposite of that. It's a single binary that runs as a systemd service and polls GitHub for jobs over an outbound connection. Setup is about ten minutes. You don't even change your workflows beyond one line:

jobs:
  build:
    runs-on: [self-hosted, my-label]   # was: ubuntu-latest

That's it. Everything else - the build steps, the cache, the deploy - stays exactly as it was.

The asterisk: GitHub already tried to charge for this once

I should be straight about the wobble here, because if you follow this stuff you already know about it. In December 2025 GitHub announced that starting March 2026 it would charge $0.002 per minute for self-hosted runner usage on private repos - a "cloud platform charge" for the orchestration layer, even though the compute is yours. The logic was that hosted-runner revenue had been subsidising free self-hosted usage, and they wanted that subsidy back.

The developer community reacted about how you'd expect to being told to pay per minute for software running on hardware they already own. The backlash was loud and fast, and within roughly a day GitHub postponed it. The hosted-runner price cuts (up to 39%, also announced that week) went ahead on January 1; the self-hosted charge got shelved "to re-evaluate."

Here's the part that matters for anyone betting their CI on this: postponed is not cancelled, and GitHub was careful never to say cancelled. They kept the framing of real control-plane costs and promised only to consult before trying again. Read plainly, the intent is still there, the rollout just blew up. So the honest version of "self-hosted runners are free" is free today, with a credible chance of a small per-minute platform fee returning later in some form.

Does that change the math? Barely, at the scale this post is about. The proposed rate was $0.002/min - my ~3,150 nightly minutes would have been about €6 a month, which is exactly the bill I was trying to escape, so that would sting. But the fee counts against your included plan minutes before it bills, so a lot of small users would never have paid a cent.

And here's the actual hedge: if GitHub does reintroduce a charge for running CI on my own hardware, I move the runners to self-hosted GitLab. GitLab is open-source, you can run the whole thing yourself - the server and the runners - and there's no per-minute platform fee skimmed off compute you already own, because there's no GitHub in the middle to take a cut. GitLab Runner uses the same one-binary, polls-outbound model, so it's a lateral move, not a migration into the unknown. The workflows would need porting from Actions YAML to .gitlab-ci.yml, which is real work, but it's a weekend, not a rebuild. The whole point of going self-hosted was to run CI on hardware I control. A platform fee doesn't undo that - it just decides which orchestrator I point the runners at.

First, the part you have to get right: scope these to private repos

One hard rule before any setup, because it's the whole reason the architecture below looks the way it does. A self-hosted runner executes whatever a workflow tells it to, on your hardware, with whatever that box can reach. Point one at a repo that accepts pull requests from strangers and a fork PR can run attacker-controlled code on your machine - then it's your secrets, your cached credentials, and a foothold on whatever network the box sits on. Because the runner connects outbound to GitHub over a trusted channel, that malicious traffic looks exactly like normal CI and your network monitoring sees nothing.

This isn't theoretical. Researchers found GitHub's own runners, plus PyTorch and Tensorflow, exploitable through exactly this fork-PR-on-a-persistent-runner pattern, and GitHub's own docs say plainly that a self-hosted runner can be persistently compromised by untrusted code in a workflow.

So the rules the rest of this post quietly obeys:

  • Private repos only. Every repo a self-hosted runner touches is one only I can push to. No fork PRs, no strangers, no untrusted workflow code. This single rule kills most of the attack class.
  • The build box can't reach production. It talks outbound to GitHub and the registry, nothing else. It holds no key to prod (more on that split below).
  • Run it unprivileged and capped. Not as root, and boxed into a resource slice so a runaway or hostile job can't take the whole machine.

If you take one thing from this post, take the first bullet. Everything else is optimisation; that's the line between "free CI" and "free foothold into your network."

Step one: a tiny cloud box for deploys

I started with deploys, because those are the part that touches production and I wanted them boring and reliable.

I had a small cloud VPS spare in Falkenstein, Germany - the €4-a-month kind, 4GB of RAM, same datacenter as our production servers. I installed Docker and the runner, registered it, flipped the deploy workflow to runs-on: self-hosted, and the first deploy went green on the new box.

Then I got a bonus I didn't plan for. Because that runner sits on the same private network as production, the deploy stopped going over the public internet entirely - it now reaches the production box over a private address. Which meant I could finally do something I'd been putting off: stop exposing production's management access to the whole internet and lock it down to just my laptop and that one runner.

So step one didn't just kill some billed minutes. It pulled production's management surface off the public internet as a side effect. Good trade for an afternoon.

Step two: the real horsepower was in my living room

The cloud box handled deploys fine, but it's a 4GB machine. The nightly batch on a single small runner is a slow, serial grind - and the heavier builds (the Next.js and Nuxt of the world) will happily try to eat more than 4GB and fall over.

The box with the actual horsepower was already in my apartment. A mini PC running my homelab - 16GB of RAM, four cores, on 24/7 anyway, currently busy serving Pi-hole and a photo library to nobody in particular. That's a better build machine than the cloud VPS by a wide margin, and it costs me nothing extra because it's already plugged in.

So I split the work by what it actually needs:

  • Build and test jobs run on the living-room box. They only ever talk outbound - pull code from GitHub, push images to GitHub's container registry. They never touch production.
  • Deploy jobs stay on the cloud box, on the private network, allowed to reach production.

The handoff between them is the registry. The homelab builds the image and pushes it; the cloud runner tells production to pull it. The two machines never talk to each other directly, so the homelab never needs a route into prod. That separation is the security rule from earlier made concrete: the build box is the softer target (it runs third-party action code), and I don't want a softer target holding a key to production.

                       BUILD HERE, DEPLOY THERE, PROD STAYS SEALED

  ┌──────────┐      ┌────────────────────────┐         ┌────────────────────────┐
  │ git push │      │ BUILD + CI             │         │ DEPLOY                 │
  │  → main  │ ───▶ │ sidekick · living room │         │ cloud box · Falkenstein│
  └──────────┘      │ 16 GB · 4 capped agents│         │ 4 GB · on prod network │
                    │                        │         │                        │
                    │ build images·run tests │         │ pull image · roll prod │
                    │ nightly test batch     │  image  │ reaches prod over the  │
                    │                        │ ──────▶ │ private net only       │
                    │ outbound only,         │  (GHCR) │                        │
                    │ no inbound port        │         │ prod mgmt closed to    │
                    └────────────────────────┘         │ the world              │
                                                       └───────────┬────────────┘
                                                                   │ private net
                                                                   ▼
                                                          ┌──────────────────┐
                                                          │   production     │
                                                          │   Falkenstein    │
                                                          └──────────────────┘

  Billed GitHub Actions minutes: 0
  Both boxes were already paid for, and the build box holds no route into production.
Heavy build and test work runs on the living-room box. Deploys stay on the cloud box that's allowed into production. The registry is the only handoff between them.

One detail that makes this painless: the runner connects outbound. There's no inbound port to forward, no firewall hole in my home router, and it works fine behind the carrier-grade NAT a lot of home connections sit behind. The runner dials GitHub; GitHub never dials the runner.

Keeping CI from taking down the house DNS

Here's the part nobody warns you about when you put a CI runner on a box you actually live with. That mini PC isn't a dedicated build server. It runs Pi-hole - which is the DNS for my entire apartment. If a build pegs all four cores and starves Pi-hole, every device in the house loses name resolution. That's not a CI incident, that's a "why is the TV not working" incident.

So the runners are capped. All of them live in a systemd slice with a CPU quota and a memory ceiling, leaving a core and a few gigs of headroom for the homelab stack:

# /etc/systemd/system/ci-runners.slice
[Slice]
CPUQuota=300%      # 3 of 4 cores, max, for all CI combined
MemoryMax=12G

That cap does double duty: it keeps the house DNS alive, and it's also the "run it capped" rule from the security section. A job that goes hostile or just runs away can't take the whole machine with it.

I also ran more than one runner agent on the box. A single agent does one job at a time, which turns that nightly batch into a long single-file queue. Four agents on a four-core box fan it out and bring a two-hour serial slog down to about half an hour. They share the same label, so GitHub load-balances jobs across them with zero workflow changes. The nightly run kicks off at 4am UTC, which is when I'm asleep and the house DNS has nothing better to do anyway.

What it costs now

Zero billed GitHub Actions minutes. The cloud runner is a box I was already paying ~€4/month for, doing deploys it was idle for anyway. The homelab is hardware that was already on. I dropped from a double-digit GitHub bill back to the €4 I was always happy to pay.

If you're hitting the same wall - overage emails, a Pro plan that still isn't enough, a CI bill that has nothing to do with how much you ship - the move is smaller than you think. One spare box, a binary, one line of YAML, and the discipline to only ever point it at repos you control. You probably already own the hardware.

FAQ

Do self-hosted GitHub Actions runners cost money?
Not in GitHub minutes today. GitHub only bills for its hosted runners - self-hosted runners don't touch your included minutes, you just pay for the machine. The caveat: in December 2025 GitHub announced a $0.002/min platform charge for self-hosted usage on private repos, then postponed it after backlash. It's not in effect, but it's postponed rather than cancelled, so treat "free" as "free for now." See GitHub's billing docs.

Can I run a self-hosted runner on a home network behind NAT?
Yes. The runner makes an outbound connection to GitHub and polls for work. There's no inbound port to open, no router config, and it works behind carrier-grade NAT. That's what makes a living-room box viable.

Are self-hosted runners safe?
Only if you scope them right, and getting this wrong is genuinely dangerous. The thing to never do is attach a self-hosted runner to a repo that accepts pull requests from strangers - a fork PR can run attacker-controlled code on your hardware, steal secrets, and pivot into whatever network the box can reach. Researchers found GitHub itself, PyTorch, and Tensorflow exploitable this exact way. Keep the runner on private repos you control, run it as an unprivileged user, cap it with a resource slice, and never let the box that runs untrusted action code hold credentials to production.

Should I run everything on the self-hosted runner, or keep some jobs hosted?
Split by what the job needs. Heavy, frequent builds are the ones worth moving - that's where the minutes go. A job that wants massive parallelism (a big test matrix finishing in five minutes across dozens of ephemeral machines) can actually be a poor fit for one or two self-hosted agents. Move the minute-burners, leave the rest.

What's the difference between a self-hosted runner and a full CI platform like Jenkins or CDS?
Scale and babysitting. A self-hosted GitHub Actions runner is a single agent that plugs into the GitHub Actions you already use - your existing workflows run unchanged. A full self-hosted CI platform replaces GitHub Actions entirely and is a distributed system you operate yourself. For one person or a small team, the runner is almost always the right call.