How we use Dependabot to secure GitHub
GitHub's Product Security Engineering team rolled Dependabot out across several thousand internal repositories in three stages: measuring alerts org-wide through the GraphQL API, a staged enablement (200 repos, then 1,000 at 30 days, then the whole org at 45 days), and remediation. Remediation was driven through the internal Service Catalog, which receives Dependabot metrics through the REST API, attaches SLOs with grace periods, and limits the effort to production services. Folding these metrics into the monthly Engineering Fundamentals review raised the share of services with zero alerts from 68% to 81% in a quarter, covering about 50 services. The same approach was later extended to CodeQL.
Related posts
- How GitHub uses CodeQL to secure GitHub
GitHub Engineering mediumAdeptGitHub's Product Security Engineering team runs CodeQL across more than 10,000 repositories, mostly with default setup and the security-extended suites. Its Ruby monolith gets advanced setup with a custom query pack published to GitHub Container Registry. Publishing the pack separately avoided production deploys for every query change, gave precompiled queries, and kept CodeQL CLI upgrades from breaking monolith CI. A bad query could be rolled back by republishing the pack in under 15 minutes. The post shows how they pin the ruby-all dependency via codeql-pack.lock.yml, unit-test queries, share the pack through a linked repository, and use recommendation-severity custom queries (e.g. missing control_access on REST endpoints, ActiveRecord decrypt) alongside multi-repository variant analysis for bug bounty follow-up.
- How we're using Sourcegraph and a Slack bot to detect vulnerabilities and react quickly
Sourcegraph mediumAdept
Sourcegraph built a Slack bot that polls the GitHub Advisory Database every 15 minutes, triages advisories with CVSS, Hacker News buzz and a high-reach package list plus supply-chain keywords, and on a single 🚀 reaction generates detection queries, a blog scaffold, social drafts and an auto-edited Deep Search demo video. The design avoids an orchestrator. It uses JSON incident descriptors and one-shot Node scripts, auto-commits inert manifests to a private indexed demo repo through a narrowly scoped PAT, and parks borderline advisories for 12 hours to prevent alert fatigue. An ffmpeg scene-detection, burst-clustering and anchor-filtering pipeline cut a 210-second capture to 19 seconds of content. Putting a 'DO NOT INSTALL' note in the manifest made Deep Search discard the match as synthetic, so the disclosure was moved to the repo README.
- How River takes security work from a fix to merge
Shopify Engineering mediumAdeptRiver, Shopify's Slack-based AI agent, drives dependency and application vulnerability fixes from patch to verified closure. It revalidates each ledger entry against the live repository head, PR state and vulnerability tracker before editing. It replays upgrades on the current head, grafts changes into the current lockfile, and ignores CI results from superseded commits. When it reaches a decision it cannot make, it hands owners one narrow question. After merge it confirms the default branch no longer carries the vulnerability. In the first 11 days the dependency backlog fell about 70%, and security merges through the freshness-gated merge queue rose from about 10% to 80%. The key lesson is that prompts can express judgment, but guarantees such as enumeration, deduplication and current-head identity must be enforced in code.
- Automating Security Triage with HackerOne and Deep Search
Sourcegraph easyNovice
Sourcegraph's security team built a small service that receives signed HackerOne webhooks for new bug bounty reports, verifies the signature, and sends the report to the Deep Search API to investigate it against the relevant codebase. The service posts a team-only comment back with a validity verdict, severity, links to affected code, suggested fixes and a link to the Deep Search conversation, and in one case it surfaced a separate critical config-override logic flaw that the reporter had not mentioned. Known risks are reporters driving token consumption, wrong repository mapping and prompt injection in report text. Mitigations include entitlement-based rate limits, invite-only programs, explicit service-to-repo mappings in the prompt and tagging untrusted input.
- Defending Your Software Supply Chain: What Every Engineering Team Should Do Now
Docker mediumAdeptRecent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners. The recommended defenses start with pinning Actions to commit SHAs and images to digests, using lock files with npm ci, and applying 3-day cooldowns on new dependency versions, since most malicious releases live only hours. Further layers are short-lived scoped CI credentials, avoiding pull_request_target, artifact proxies and build-time SBOMs, plus canary tokens and credential cleanup on developer machines. AI coding agents should run in microVM sandboxes and MCP servers should be governed. Many recommendations are paired with Docker products such as Hardened Images, Scout, Sandboxes and MCP Gateway.