The website for Plumber, CI/CD security posture management for GitHub Actions and GitLab CI/CD. Plumber checks every pipeline before it runs, grades it from A to E, and opens the pull request that fixes what it finds. The site is built with Astro, Tailwind CSS, and React and deployed on Vercel.
Plumber CLI (the product this site documents):
Badge notes: Plumber Score and OpenSSF Scorecard grade this repository itself: the first is Plumber dogfooding its own GitHub Action against these workflows (threshold 90, on every PR, push to main, weekly and on demand; see the Plumber badge for the run), the second is the OpenSSF supply-chain posture score published weekly by
scorecard.yml. Security Scan runsnpm auditdaily; it turns red as soon as a published CVE affects one of this site's dependencies (advisories with no patched release are allowlisted in.github/npm-audit-allowlist.json, each with an expiry date). CodeQL is GitHub's static analysis on every PR, push to main, and weekly. Lockfile checks that every GitHub Action the workflows use is pinned in.github/workflows/actions.lock. Release is semantic-release tagging a new site version on every push to main (see Release process). PRs additionally run Dependency Review, which blocks introducing dependencies with known vulnerabilities (no badge: it never runs onmain).
This is the marketing and documentation website for Plumber, CI/CD security posture management for GitHub Actions and GitLab CI/CD. The product story the site tells, in the words of the home page:
- Leaking CI/CD pipelines kill your company. Plumber prevents it. AI now writes your pipelines, and nobody reviews them. A pipeline holds the keys to your code, your cloud and your customer data, and gets reviewed less than any other part of the codebase.
- One loop, run on every pipeline, every time it changes: Map every pipeline across all your repos, Find unpinned third-party actions, tokens with too much access and missing branch protection, Fix them with a pull request your team can read, test and reject, and Grade every pipeline with a Plumber Score from A to E that can block any merge below a threshold you set.
- One product, two ways to use it: the open-source CLI, GitHub Action and GitLab CI component for developers (no setup, no account), and the Platform for organizations (continuous posture across every repo and team, one dashboard, audit-ready reporting, and an AI agent that fixes what it finds).
- Same checks, same score, on GitHub and GitLab. Every check Plumber runs is open source: run it on your own pipeline and you get the same grade we do.
Keep that wording in mind when writing new pages: positioning is CI/CD security, GitHub and GitLab are always treated equally, and the copy avoids em-dashes.
The website features:
- π Blog - release notes, customer stories, research (State of CI/CD Security) and articles about CI/CD security, with an archive for the legacy R2Devops release notes
- π Documentation - one tab with Getting Started, Plumber Score, the CLI (GitHub, GitLab, configuration, issues, how the analysis works), the Platform (installation, usage, API reference) and the legacy v1 install guides
- π¨ Home page - the 2026 landing page (hero, value proposition, incident log, how it works, proof, FAQ, book-a-demo form), driven by
src/config/en/homeData.json.ts - π‘ Radar -
/radaris rewritten to the separate Plumber Radar app (vercel.json), the public scan of GitHub and GitLab projects - π Search - full-text search powered by Pagefind
- π€ AEO endpoints -
/llms.txtand/llms-full.txtfor AI crawlers, structured data on every page - βοΈ Forms - book a demo and newsletter, delivered through Resend by two API routes
- β¨ CMS - Keystatic CMS for content management
- Node.js 22.23.4+ (matches
enginesinpackage.json; CI and Vercel run the latest Node 22) - npm 10 (the version CI uses; see Dependencies & lockfile before touching
package-lock.json)
-
Install dependencies:
npm ci
-
Start the development server:
npm run dev
Visit
http://localhost:4321. Search and the form API routes are the only features that do not work out of the box in dev (see below). -
Optional: search in dev. Pagefind indexes the production build, so run it once and copy the index into
public/:npm run build npm run winsearch # Windows npm run osxsearch # macOS / Linux
-
Optional: forms in dev. Copy
.env.exampleto.envand fill the Resend values. Without them the API routes answer 503 and the forms show the email fallback, which is the intended local behaviour.
| Command | Action |
|---|---|
npm run dev |
Start local dev server at localhost:4321 |
npm run build |
Build the production site (Vercel output) and the Pagefind index |
npm run preview |
Not supported with the Vercel adapter (see Testing Locally) |
npm run format |
Fix lint issues and format everything with ESLint and Prettier |
npm run lint |
Run ESLint (the Lint check in CI) |
npm run seo-audit |
Run the SEO audit script against a site URL |
npm run config-i18n |
Add a locale (interactive wizard) |
npm run remove-keystatic |
Remove Keystatic CMS if not needed |
npm run generate-favicon-ico |
Generate favicon.ico from favicon.svg |
npx astro check |
Type-check Astro components and TypeScript |
- Astro 7 - static site generator with content collections, on Vite 8 (rolldown)
- Tailwind CSS 4 - utility-first CSS, configured in CSS (
@theme) - React 19 - a few interactive islands (via the Astro integration)
- TypeScript - type safety, strict schemas for every content collection
- MDX - Markdown with components for the blog and the docs
- Expressive Code - code blocks and frames (
ec.config.mjs), one high-contrast theme per site mode - Keystatic CMS - Git-based CMS for the blog, authors and other pages (
/keystatic) - Pagefind - fast static search
- Scalar - the Platform API reference at
/docs/api-reference, rendered frompublic/openapi.yaml - Astro SEO and astro-icon (Tabler icons plus the pixel icons in
src/icons/) - Resend - email delivery for the book-a-demo and newsletter forms
- Plausible - privacy-friendly analytics, proxied through the
/js/script.jsand/api/eventrewrites invercel.json - Motion on Scroll and the home page reveal script - scroll-triggered animations
- Deployment: Vercel (
@astrojs/verceladapter), deployed from GitHub Actions with a hash-locked Vercel CLI - Image Optimization: Sharp image service (Vercel's image service is off)
- Compression: HTML/JS compression via Playform Compress
- RSS Feed and sitemap with truthful blog
lastmoddates - IndexNow: every production deploy pings IndexNow with the sitemap
.
βββ .github/
β βββ workflows/ # CI/CD (see Release process); actions.lock pins every action
β βββ vercel/ # Isolated, hash-locked Vercel CLI used by the deploy workflows
β βββ npm-audit-allowlist.json # Advisories with no fix yet, each with an expiry date
β βββ dependabot.yml # Weekly npm, GitHub Actions and .github/vercel bumps
βββ docs/superpowers/ # Design specs and plans (landing redesign, home numbers sources)
βββ public/ # Static assets
β βββ favicons/
β βββ docs/ # Images referenced by the docs
β βββ openapi.yaml # Platform API spec rendered at /docs/api-reference
β βββ robots.txt
β βββ social-media-card.png
βββ scripts/ # Utility scripts
β βββ config-i18n.js # i18n configuration wizard
β βββ generate-favicon-ico.js
β βββ i18n/ # i18n management utilities
β βββ indexnow-submit.js # Pings IndexNow after a production deploy
β βββ npm-audit.mjs # npm audit with the allowlist (Security Scan workflow)
β βββ remove-keystatic.js
β βββ seo-audit.js
βββ src/
β βββ assets/ # Images, videos, customer logos (optimized by Astro)
β βββ components/ # Reusable Astro/React components
β β βββ Home/ # The home page sections (Hero, ValueProp, IncidentLog, ...)
β β βββ Animation/ # Pipeline animation
β β βββ Faq/, Feature/, Pricing/, Testimonials/, LogoCloud/, PostCard/
β β βββ Forms/ # Contact, login, signup, password reset forms
β β βββ Nav/, Footer/, PageHeader/, SiteLogo/, ThemeToggle/
β β βββ ReleaseVersions/ # Version footer for CLI release notes
β β βββ Seo/ # Seo, HrefLang, SoftwareAppJsonLd
β β βββ starwind/ # UI primitives (accordion, dialog, tabs, table, ...)
β βββ config/ # Site configuration
β β βββ en/ # Locale-specific (siteData, homeData, navData, faqData, testimonialData)
β β βββ siteSettings.json.ts
β β βββ translationData.json.ts
β βββ data/ # Content collections data
β β βββ blog/ # Blog posts (by language)
β β β βββ en/
β β βββ authors/ # Author profiles
β β βββ otherPages/ # Additional pages (privacy policy, terms of use)
β β βββ issues.ts # The ISSUE-nnn catalog rendered by the issue pages
β β βββ controlIds.ts # CTRL-nnn ids
β β βββ issueCodeRedirects.ts
β βββ docs/ # Documentation system
β β βββ components/ # Docs-specific components
β β β βββ mdx-components/ # MDX components (Aside, Steps, Tabs, ScoreReport, ...)
β β βββ config/en/ # sidebarNavData (tabs and sections), docs siteData, navData
β β βββ data/docs/en/ # Documentation content (by language)
β β βββ js/ # docsUtils (canonical URLs), sitemapUtils
β β βββ layouts/ # Docs layouts
β β βββ styles/ # Docs-specific styles
β βββ icons/ # SVG icons (logos, social pixel icons, tabler)
β βββ js/ # Utility functions (jsonLD, llmsTxtUtils, blogUtils, forms, ...)
β βββ layouts/ # BaseLayout, BaseHead, blog layouts, DiscordLayout
β βββ lib/
β β βββ formMail.ts # Shared helpers for the form API routes
β βββ pages/ # Route-based pages
β β βββ index.astro # Home page (/platform 301s here)
β β βββ api/
β β β βββ demo.ts # POST /api/demo (book a demo)
β β β βββ newsletter.ts # POST /api/newsletter
β β βββ blog/
β β β βββ index.astro # Blog list
β β β βββ archive.astro # Archived (R2Devops) release notes
β β β βββ [...slug].astro # Blog post
β β βββ docs/
β β β βββ [...slug].astro # Docs pages (/docs itself 301s to /docs/getting-started)
β β β βββ api-reference.astro # Scalar API reference
β β β βββ [section]/issues/[code].astro # Issue pages (ISSUE-nnn)
β β βββ contact.astro
β β βββ discord.astro
β β βββ animation-preview.astro # Dev preview of the pipeline animation (not in the sitemap)
β β βββ [...page].astro # Other pages (privacy-policy, terms-of-use)
β β βββ 404.astro
β β βββ llms.txt.ts # llms.txt index for AI crawlers
β β βββ llms-full.txt.ts # Full docs content for AI crawlers
β β βββ rss.xml.ts # RSS feed
β βββ styles/ # Global styles
β β βββ global.css
β β βββ tailwind-theme.css
β β βββ buttons.css
β β βββ code-frames.css
β β βββ markdown-content.css
β β βββ fonts.css
β β βββ mos.css
β β βββ keystatic.css
β βββ content.config.ts # Content collections schema
βββ .env.example # Resend settings for the form API routes
βββ .releaserc.json # semantic-release configuration
βββ astro.config.mjs # Astro configuration
βββ ec.config.mjs # Expressive Code configuration
βββ keystatic.config.tsx # Keystatic CMS configuration
βββ package.json
βββ tsconfig.json
βββ vercel.json # Rewrites (Plausible, Radar), headers and 301 redirects
Blog articles use MDX format and are stored in src/data/blog/[locale]/.
Create a folder with your article slug:
src/data/blog/en/my-article-name/
βββ index.mdx # Article content
βββ heroImage.png # Hero image (required)
βββ other-images.png # Additional images (optional)
Every blog article must have frontmatter at the top:
---
title: Your Article Title
description: A compelling description for SEO and previews
draft: false
authors:
- main-author
- second-author
pubDate: 2026-01-15
updatedDate: 2026-01-20 # Optional
heroImage: ./heroImage.png
categories:
- ci-cd
- security
mappingKey: my-article # Optional: for i18n matching
---
Your article content starts here...
## Headings
Write in Markdown/MDX format.

β οΈ Do not start the body with a# Titleheading. The blog layout renders the frontmattertitleas the page's single<h1>automatically; a markdown H1 would create a duplicate. Start your headings at##.
| Field | Type | Required | Description |
|---|---|---|---|
title |
string | β | Article title |
description |
string | β | SEO description & preview text |
draft |
boolean | β | Set to true to exclude from build |
authors |
array | β | Array of author IDs (references src/data/authors/) |
pubDate |
date | β | Publication date (YYYY-MM-DD) |
updatedDate |
date | β | Last update date (also the sitemap lastmod) |
heroImage |
image | β | Path to hero image |
categories |
array | β | Array of category strings |
mappingKey |
string | β | For linking translations |
tocHeadingIcons |
object | β | Map of heading slug to astro-icon name for the sidebar TOC |
- Hero images: Place in the article folder, reference as
./heroImage.png - Inline images: Place in the article folder, reference with relative paths
- Optimized: All images are automatically optimized by Astro
Auto-imported components (no import needed, the list is in astro.config.mjs):
<Admonition>- info boxes<ReleaseVersions />- version footer for CLI release notes (resolves the latest CLI release in the browser)<OriginalAuthor>- credit for republished articles- The docs MDX components (
<Aside>,<Steps>,<Tabs>,<Card>, ...)
For other components, import them:
---
title: My Article
---
import CustomComponent from "@components/CustomComponent.astro";
<CustomComponent prop="value" />To announce a new product release, add a top-level post folder named release-[version]/ (Platform) or release-cli-[version]/ (CLI). These posts appear on the main blog page and in the RSS feed.
Where to add it: src/data/blog/[locale]/release-[version]/
Example for the Platform release "1.5.0":
src/data/blog/en/release-1.5.0/
βββ index.mdx # Release notes content
βββ heroImage.png # Hero image (required)
βββ screenshot.png # Optional screenshots
Use the same frontmatter as any blog article. Use the releases-platform category for Platform releases or releases-cli for CLI releases (the blog page filter buttons match on those exact ids):
---
title: "Plumber 1.5 Release - What's New"
description: Short description for SEO and previews
draft: false
authors:
- plumber
pubDate: 2026-06-10
heroImage: ./heroImage.png
categories:
- "releases-platform"
---CLI release posts end with <ReleaseVersions />, which links the latest CLI release, the GitHub Action and the GitLab component without hard-coding a version. Never write the CLI version number by hand in a post unless the line carries the pinned plumber version marker (see Plumber CLI releases).
Note: Posts in archive/ are archived: they only appear on /blog/archive, not on the main blog list. Keep archive/ for old/historical release notes (e.g. legacy R2Devops releases).
See existing blog posts in src/data/blog/en/ for reference:
release-1.5.0/index.mdx- Platform release notesrelease-cli-0.4/index.mdx- CLI release notesarchive/2.17/index.mdx- Archived release notes (R2Devops)shai-hulud/index.mdx- Incident articlestate-of-cicd-security-2026/index.mdx- Long-form research articleNUMSPOT-use-case/index.mdx- Customer story
Authors are defined in src/data/authors/[author-id]/.
Structure:
src/data/authors/john-doe/
βββ index.mdx
βββ avatar.jpg
Content (index.mdx):
---
name: John Doe
avatar: ./avatar.jpg
about: DevOps engineer passionate about CI/CD security
email: john@example.com
authorLink: https://johndoe.com
---Documentation articles use MDX and are stored in src/docs/data/docs/[locale]/.
Option A: Single file
src/docs/data/docs/en/cli/configuration.mdx
Option B: Folder with index (recommended for images)
src/docs/data/docs/en/cli/github/
βββ index.mdx
βββ img/
βββ screenshot.png
Option C: Nested sections
src/docs/data/docs/en/installation/
βββ index.mdx
βββ docker-compose.mdx
βββ kubernetes.mdx
βββ troubleshooting.mdx
---
title: Get your first Plumber Score
seoTitle: Get Started with Plumber - Scan your CI/CD in 2 minutes # Optional meta title
description: Install the open-source Plumber CLI and get a security score in under two minutes.
lead: Plumber scans your CI/CD pipelines for security problems and grades them from A to E. # Optional, under the H1
lastUpdated: 2026-10-27 # Optional, shown in the page footer
sidebar:
label: Getting Started # Label in sidebar (defaults to title)
order: 1 # Order in sidebar
badge:
text: New
variant: tip # note, tip, caution, danger, info
tableOfContents:
minHeadingLevel: 2
maxHeadingLevel: 3
pagefind: true # Include in search (default: true)
draft: false # Exclude from build if true
mappingKey: getting-started # For i18n
---
## Your documentation content
Write your docs here in Markdown/MDX.| Field | Type | Required | Description |
|---|---|---|---|
title |
string | β | Page title (also the visible H1) |
seoTitle |
string | β | Meta <title> override - use for keyword-rich titles without changing the visible H1 |
description |
string | β | SEO description |
lead |
string | β | Lead paragraph rendered under the H1 |
lastUpdated |
date | β | Shown as "Last updated" in the page footer |
sidebar.label |
string | β | Sidebar text (defaults to title) |
sidebar.order |
number | β | Sidebar position |
sidebar.badge |
object | β | Badge with text & variant |
sidebar.hidden |
boolean | β | Hide from the sidebar; the page still builds |
sidebar.grouped |
boolean | β | false lifts a page out of its section's sub-list to the parent group level |
sidebar.indent |
boolean | β | Indent the entry |
sidebar.icon |
string | β | astro-icon name shown next to the entry |
tableOfContents |
object | β | TOC configuration |
pagefind |
boolean | β | Include in search (default: true) |
draft |
boolean | β | Exclude from build |
mappingKey |
string | β | For i18n matching |
The following components are auto-imported in all documentation files (and in blog posts):
<Aside variant="note">This is a note callout.</Aside>
<Aside variant="tip">This is a helpful tip!</Aside>
<Aside variant="caution">Be careful with this.</Aside>
<Aside variant="danger">This is dangerous!</Aside>Variants: note, tip, caution, danger, info
<Badge variant="tip">New</Badge>
<Badge variant="caution">Deprecated</Badge><Button href="/docs/installation">Get Started</Button>
<Button variant="secondary">Learn More</Button><Steps>
1. First, install the dependencies
```bash
npm install- Then configure your settings
- Finally, run the build
##### Tabs
```mdx
<Tabs defaultValue="github">
<TabsList>
<TabsTrigger value="github">GitHub</TabsTrigger>
<TabsTrigger value="gitlab">GitLab</TabsTrigger>
</TabsList>
<TabsContent value="github">
```bash
GH_TOKEN=... plumber analyze
```
</TabsContent>
<TabsContent value="gitlab">
```bash
GITLAB_TOKEN=... plumber analyze
```
</TabsContent>
</Tabs>
<ProviderTabs>- GitHub / GitLab tabs that remember the visitor's choice across pages<Stats items={[{ value, label }]} />- the stat row used at the top of Getting Started<ScoreReport score grade status gate />- a rendered Plumber report<IssuesList />and<NewControlsTable />- generated fromsrc/data/issues.tsandsrc/data/controlIds.ts<Card>/<CardGrid>- link cards (icon, badge, links)<DocsFaq>- FAQ block that also emits FAQPage JSON-LD
The sidebar is auto-generated from:
- The sections listed in
src/docs/config/en/sidebarNavData.json.ts(oneDocumentationtab: Getting Started, Plumber Score, CLI, then Installation and Usage under thePlatformgroup, then the collapsedLegacy (v1)section) - The folder structure under
src/docs/data/docs/[locale]/ - The
sidebar.orderandsidebar.labelvalues in frontmatter (label falls back totitle)
Tips:
- Only sections listed in
sidebarNavData.json.tsare built; add the section there when you add a folder - Folders become collapsible sections;
index.mdxfiles become the section's main page - A section's
navLinksadds hand-written entries (Issues, How the analysis works, API Reference)
See existing docs for reference:
src/docs/data/docs/en/getting-started/index.mdx- Getting Started (stats row, cards, score report)src/docs/data/docs/en/plumber-score/- Plumber Score and the signed score pushsrc/docs/data/docs/en/cli/- CLI (installation, github, gitlab, configuration, controls-configuration, how-the-analysis-works, reference)src/docs/data/docs/en/installation/- Platform installation (docker-compose, docker-compose-local, kubernetes, component-update, troubleshooting, reference)src/docs/data/docs/en/use-plumber/- Platform usage (issues, register-templates, roles-permissions, connect-ai-agent-mcp)src/docs/data/docs/en/legacy/v1/- v1 install guides kept for existing installations
Routing note: the issues content under use-plumber/ is served at both /docs/use-plumber/issues* and /docs/cli/issues*; the CLI URL is canonical (see SEO & AEO Conventions). The Controls page was retired on 2026-10-08: controls are met as CTRL-nnn ids on the issue pages and configured on the CLI controls configuration page, and both old /controls routes redirect to the issues list.
Create a new .astro file in src/pages/:
---
// src/pages/about.astro
import PageHeader from "@components/PageHeader/PageHeader.astro";
import BaseLayout from "@layouts/BaseLayout.astro";
---
<BaseLayout title="About Us" description="Learn about our mission">
<section class="site-container py-16">
<PageHeader eyebrow="About" title="Our story" lead="Why we built Plumber." />
<p>Content here...</p>
</section>
</BaseLayout>This creates a route at /about. Give the page a title and description: BaseLayout turns them into the meta tags, Open Graph card and canonical URL.
Use [param].astro for dynamic routes:
---
// src/pages/product/[id].astro
export async function getStaticPaths() {
return [{ params: { id: "cli" } }, { params: { id: "platform" } }];
}
const { id } = Astro.params;
---
<BaseLayout title={`Product: ${id}`}><!-- Content --></BaseLayout>Pages are prerendered by default. Set export const prerender = false only for request-time endpoints such as the form API routes.
The home page is assembled from the sections in src/components/Home/, each reading its copy from src/config/en/homeData.json.ts so that wording changes never touch markup:
---
import Hero from "@components/Home/Hero.astro";
import HowItWorks from "@components/Home/HowItWorks.astro";
import Proof from "@components/Home/Proof.astro";
import BookDemo from "@components/Home/BookDemo.astro";
---
<Hero />
<HowItWorks />
<Proof />
<BookDemo />- Home - the landing page sections (Hero, ValueProp, AttackersWalkIn, IncidentLog, HowItWorks, OneProduct, Proof, Faq, BookDemo) and their shared SectionHeading and NoteBanner
- Animation - the pipeline animation used on the home page (preview it at
/animation-preview) - Feature / Pricing / Testimonials / LogoCloud / Faq - section components from the theme, some still used on inner pages
- Forms - contact, login, signup and password reset forms
- PostCard - blog post cards
- PageHeader - eyebrow, uppercase H1 and lead paragraph shared by the blog, archive and error pages
- Seo - meta tags, hreflang and the SoftwareApplication JSON-LD
- SiteLogo / Nav / Footer / ThemeToggle - chrome
- starwind - UI primitives (accordion, dialog, tabs, table, tooltip, ...)
---
// src/components/MyComponent/MyComponent.astro
interface Props {
title: string;
description?: string;
}
const { title, description } = Astro.props;
---
<div class="my-component">
<h2>{title}</h2>
{description && <p>{description}</p>}
<slot />
</div>
<style>
.my-component {
/* Component-scoped styles */
}
</style>Usage:
---
import MyComponent from "@components/MyComponent/MyComponent.astro";
---
<MyComponent title="Hello" description="World">
<p>Slotted content</p>
</MyComponent>Tailwind 4 is configured via CSS variables in src/styles/tailwind-theme.css:
@theme {
--color-primary-*: ...;
--color-secondary-*: ...;
}The 2026 identity (teal accent, pixel icons, Inter and Geist Mono) lives there; the design source is the Figma file referenced at the top of src/config/en/homeData.json.ts.
Located in src/styles/:
global.css- base styles, CSS variablesbuttons.css- button variantscode-frames.css- Expressive Code framesmarkdown-content.css- Markdown rendering stylesfonts.css- font importsmos.css- Motion on Scrollkeystatic.css- CMS overrides
Dark mode is implemented via the .dark class on <html>. Toggle component: ThemeToggle.astro. Expressive Code switches its theme on the same class (ec.config.mjs).
Search is powered by Pagefind, built during the production build.
Configuration:
- Automatically indexes all pages
- Control indexing with
data-pagefind-ignoreattribute - Control in docs with
pagefind: falsein frontmatter
Building search index:
npm run build # astro build, then pagefind indexes .vercel/output/staticThe site carries structured data and answer-engine endpoints. Keep these invariants when adding content:
- Blog: the layout renders the frontmatter
titleas the only<h1>; never start a post body with# Title. Titles get a| Plumbersuffix automatically unless they already contain "Plumber". - Docs:
titleis both the meta title and the visible H1. Use the optionalseoTitlefrontmatter field when the search-engine title should be longer/keyword-richer than the page heading.
- Shared Platform/CLI docs content (
use-plumber/issues*) is served at both/docs/use-plumber/*and/docs/cli/*. The CLI URL is canonical:getCanonicalDocsPathname()insrc/docs/js/docsUtils.tssets the canonical tag and must stay in sync with the sitemap filter insrc/docs/js/sitemapUtils.ts. - Never delete a public URL without adding a 301 in
vercel.json(redirectsarray). That is where public redirects live (/platformto/,/adminto/keystatic, old docs paths, trailing slashes).astro.config.mjsonly holds the two retired Controls routes, which land on the issues lists. - Rewrites (not redirects) in
vercel.jsonserve Plausible under/js/script.jsand/api/event, and the Radar app under/radar.
src/js/jsonLD.ts- Organization (+sameAssocial profiles) & WebSite on every page; BlogPosting on posts.src/components/Seo/SoftwareAppJsonLd.astro- SoftwareApplication markup on the homepage; keep in sync with product positioning (the description there mirrors the hero and value proposition).src/components/Home/Faq.astro(home page) andsrc/docs/components/mdx-components/DocsFaq.astro(docs MDX) render FAQ content and emit FAQPage JSON-LD. FAQ copy lives insrc/config/en/faqData.json.ts.- When emitting JSON-LD that contains HTML, escape
<(.replace(/</g, "\\u003c")), otherwise the HTML compressor fails on the page.
/llms.txt- curated markdown index (key pages, docs, blog) generated from content collections./llms-full.txt- full docs content in one file.- Both are driven by
src/js/llmsTxtUtils.ts; itsROUTED_DOCS_SECTIONSlist must match the sections insidebarNavData.json.tswhen docs sections are added or removed. robots.txtallows all crawlers viaUser-agent: *; do not add per-bot groups (a bot matching a specific group ignores the*rules).
- The sitemap skips
/animation-previewand the duplicate Platform docs URLs, and carries a truthfullastmodfor blog posts (frompubDate/updatedDate). - Every production deploy runs
scripts/indexnow-submit.js, which submits the sitemap URLs to IndexNow (Bing and the AI assistants fed by it). The key file inpublic/is public by design.
npm run seo-auditruns the local audit; the SEO Audit workflow runs it weekly against production and on demand against any URL.
The book-a-demo form (home page) and the newsletter form post JSON to two request-time endpoints in src/pages/api/:
POST /api/demo- name, work email, company, optional number of pipelinesPOST /api/newsletter- email
src/lib/formMail.ts holds the shared pieces: a size-capped JSON reader, field validation, a honeypot field (website), a best-effort per-IP rate limit, and delivery through the Resend HTTP API to CONTACT_TO_EMAIL. The three settings (RESEND_API_KEY, RESEND_FROM, CONTACT_TO_EMAIL) are read from the function environment at request time and documented in .env.example. Without RESEND_API_KEY and RESEND_FROM the routes answer 503 and the forms fall back to a mailto: link to hello@getplumber.io, which is what preview deployments and local development do.
- Default language: English (
en) - Locale prefix: Disabled for default locale
-
Run the i18n configuration wizard:
npm run config-i18n
-
Follow the prompts to add a new locale
-
The script will:
- Update
astro.config.mjs - Update
keystatic.config.tsx - Update site settings
- Create content folders for the new locale
- Update
After adding a locale, translate content by:
- Copying content from
src/data/blog/en/tosrc/data/blog/[locale]/ - Copying docs from
src/docs/data/docs/en/tosrc/docs/data/docs/[locale]/ - Updating
src/config/translationData.json.ts
- Local development:
http://localhost:4321/keystatic - Production:
https://getplumber.io/keystatic(/adminredirects there)
Keystatic is configured in keystatic.config.tsx. Current collections:
blogEN- Blog posts (English)authors- Author profilesotherPagesEN- Additional pages
Keystatic and content.config.ts describe the same frontmatter: when you add a field to one, add it to the other.
- Local: No authentication required
- Production: Uses Keystatic Cloud (project
plumber/plumber)
If you don't need a CMS:
npm run remove-keystaticThe site is hosted on Vercel and deployed by the two deploy workflows in .github/workflows/, which build and deploy from GitHub Actions with the Vercel CLI so that every deploy runs on a pinned, reviewed toolchain.
preview.yaml runs on every push to a branch other than main (Dependabot branches excluded, since bot-triggered runs get no secrets). It pulls the preview environment, runs vercel build, deploys with vercel deploy --prebuilt, and posts the preview URL as a single comment on the branch's open pull request (updated on every push). A newer push cancels the in-flight preview deploy of the same branch.
production.yaml runs on every push to main: vercel pull --environment=production, vercel build --prod, vercel deploy --prebuilt --prod, then the IndexNow ping. Production deploys are serialized and never cancelled mid-flight, so two rapid merges cannot land out of order. Production is only ever deployed from trusted history on this repository (never from a workflow_run of a fork).
The deploy jobs run with VERCEL_TOKEN in scope, so the CLI they run is hash-locked in the isolated .github/vercel/package.json manifest (npm ci --prefix .github/vercel), kept out of the site's own dependency tree and bumped weekly by Dependabot.
Set in the Vercel project (production and preview environments):
RESEND_API_KEY,RESEND_FROM,CONTACT_TO_EMAILfor the forms (see Forms & API routes)- Keystatic Cloud needs no variable here; the project is named in
keystatic.config.tsx
To deploy elsewhere, swap the adapter in astro.config.mjs and follow Astro's deployment guides. The vercel.json rewrites, headers and redirects would need an equivalent.
There is no release branch, release PR or manual version bump. Merging to main is the release: the push deploys production and tags a new site version. The sequence, from a change to a published site:
git fetch origin
git switch -c feat/my-change origin/mainBranch from the remote main, not a local one: a stale local main has already shipped branches that missed recent design changes.
Commit messages follow Conventional Commits (type(scope): subject). They matter twice: semantic-release reads them to pick the next version, and the generated release notes are made of them. main only accepts rebase merges, so every commit on a PR lands on main as is. Keep each commit conventional; there is no squash step to fix a message later.
| Commit type | Release | Release notes section |
|---|---|---|
feat |
minor | Feature |
refactor |
minor | Code refactoring |
fix |
patch | Bug fix |
perf |
patch | Performance |
docs |
patch | Documentation |
style |
patch | Design |
chore |
patch | Chore tasks |
ci |
patch | Continuous Integration |
i18n |
patch | Internationalization |
test |
patch | Test |
build, revert |
patch | (not listed) |
any type with ! or a BREAKING CHANGE: footer |
major | |
| non-conventional message | none |
Every conventional type releases, because every merge changes the published site. A commit that does not parse as conventional is simply left out, so a PR made only of such commits merges without a release: keep the format.
Push the branch and open a PR against main. On every push, the checks below run; the Deploy Preview workflow also posts the preview URL on the PR, so reviewers see the change on a real Vercel deployment.
| Check | Workflow | What it verifies |
|---|---|---|
| ESLint | lint.yml |
npm run lint |
| Astro Build | build.yml |
npm run build without secrets (also covers Dependabot PRs, which get no preview) |
| Lockfile | verify-lockfile.yml |
gh actions-lock --verify: every uses: is pinned in actions.lock |
| NPM Audit | security.yml |
node scripts/npm-audit.mjs --audit-level=moderate and node scripts/npm-audit.mjs --omit=dev --audit-level=high |
| Dependency Review | dependency-review.yml |
The PR introduces no dependency with a known vulnerability (moderate and above) |
| CodeQL | codeql.yml |
Static analysis of the JavaScript/TypeScript |
| Plumber | plumber.yml |
Plumber grades this repository's own workflows; fails under 90 points |
| Deploy Preview | preview.yaml |
Builds and deploys the branch to a Vercel preview (not for Dependabot branches) |
Run the same validation locally before pushing (see Contributing): npm run lint, npm run build, and the two audit commands.
The main ruleset requires a pull request, allows only the rebase merge method, and forbids force pushes and deletion. Rebase-merge once the checks are green. Merged PRs close; the branch can be deleted.
Every push to main triggers, in parallel:
- Deploy Production (
production.yaml): builds and deploys to Vercel, then pings IndexNow. The site is live a few minutes after the merge. - Release (
release.yml):npx semantic-releasereads the commits since the last tag, computes the next version, creates the Git tagvX.Y.Zand the GitHub Release with notes grouped by the sections above. Nothing is committed back tomain(no changelog file, nopackage.jsonbump, no npm publish:@semantic-release/npmis stubbed out), so branch protection stays intact andpackage.json'sversionfield is meaningless. The site version is the latest tag. - The Lint, Build, Lockfile, Security Scan, CodeQL and Plumber workflows run again on
main, which keeps the badges above truthful.
Release and production deploy each have their own concurrency group with cancel-in-progress: false, so two merges a minute apart produce two tags and two deploys, in order.
The site pins the CLI version in a handful of places (install snippets, the GitHub Action and GitLab component examples, the pipeline animation). Every such line carries a pinned plumber version marker comment. When a new CLI version is published, the Propagate Release workflow in getplumber/plumber checks this repository out, rewrites every marked line, pushes a release/auto-bump-vX.Y.Z branch and opens a PR titled chore(release): bump Plumber pins to vX.Y.Z as the plumber-release GitHub App. Older open auto-bump PRs are closed as superseded.
To ship a CLI release on the site:
- Review and rebase-merge the auto-bump PR. Its
chorecommit releases a patch version of the site and redeploys production with the new pins. - Keep the marker on any new line that hard-codes a CLI version, or the next bump will miss it. Prefer
<ReleaseVersions />and thedata-plumber-cli-versionattribute (resolved in the browser from the latest GitHub release, seesrc/js/plumberCliVersion.ts) wherever the latest version is what you mean. - The Plumber Action this repository runs on itself (
uses: getplumber/plumber@vX.Y.Zinplumber.yml) is bumped by hand in aci(plumber):commit, followed bygh actions-lockso the Lockfile check passes. - Announce it with a
release-cli-X.Y/blog post when the release deserves one (see Adding a new release blog post).
Dependabot opens weekly PRs: one grouped PR for npm minor and patch bumps, one PR per major, one for GitHub Actions and one for the Vercel CLI manifest. They go through the same checks (Build stands in for the preview deploy, which they skip). A GitHub Actions bump also changes actions.lock; if the Lockfile check fails on such a PR, run gh actions-lock on its branch. conventional-changelog-conventionalcommits is pinned (see the note in package.json) until semantic-release ships a compatible notes generator.
Revert the offending commit on a branch (git revert, a revert: commit) and merge it like any change: it deploys and tags a patch release. For an immediate rollback while the revert is in review, promote the previous production deployment from the Vercel dashboard; the next merge to main deploys over it.
Astro provides fast HMR for:
- Astro components
- MDX files
- Styles
- React components
TypeScript is fully configured. Run type checking:
npx astro checknpm run lint # Check for issues
npm run format # Auto-fix issues and format with PrettierPrettier (.prettierrc.mjs) uses a 100-column width and the Astro and Tailwind plugins; the ESLint config lives in eslint.config.mjs.
- No em-dashes anywhere in site copy, docs or blog posts: use a hyphen, a colon or a new sentence.
- Positioning is CI/CD security, with GitHub and GitLab treated equally; there are no per-provider landing pages.
- Marketing copy lives in
src/config/en/(homeData,siteData,faqData,testimonialData), not in components.
astro.config.mjsuses the unified markdown processor so that remark plugins (astro-auto-import) and GFM tables keep working.- Vite 8 does not resolve the
@/alias in CSS imports on its own, hence the explicitvite.resolve.alias. - CSS minification is pinned to esbuild (
esbuildis a direct devDependency) because lightningcss cannot parse Tailwind'stheme(reference)imports in scoped styles.
---
import { getCollection } from "astro:content";
// Get all blog posts
const allPosts = await getCollection("blog");
// Filter published posts
const publishedPosts = await getCollection("blog", ({ data }) => {
return !data.draft;
});
// Get by category
const securityPosts = allPosts.filter((post) => post.data.categories?.includes("security"));
------
import { getCollection } from "astro:content";
const docs = await getCollection("docs");
------
import { getEntry, render } from "astro:content";
const post = await getEntry("blog", "my-article-name");
const { Content } = await render(post);
---
<article>
<h1>{post.data.title}</h1>
<Content />
</article>Main Astro configuration:
- Site URL, image service, Vercel adapter
- Integrations (auto-import, Expressive Code, MDX, React, icon, Keystatic, sitemap, Compress)
- Markdown settings (unified processor, Shiki with CSS variables)
- i18n configuration
- The two retired Controls redirects (every other redirect is in
vercel.json)
Content collections schema:
- Defines validation for frontmatter (blog, authors, docs, otherPages)
- Configures content loaders
- Sets up relationships (e.g. blog posts β authors)
Expressive Code: the two high-contrast themes, the .dark selector, frame colours and contrast settings. Kept out of astro.config.mjs because the <Code> component on the issue pages loads it directly.
Rewrites (Plausible proxy, Radar app), security headers, and every public 301 redirect.
semantic-release: the main branch, the commit-type to release-type rules and the release notes sections (see Release process).
Dependencies and scripts. Key packages:
- Astro 7.x on Vite 8
- Tailwind CSS 4.x
- React 19.x
- Keystatic CMS, Pagefind (search), Expressive Code, Scalar (API reference)
- Node 22.23.4+ (
engines); CI and Vercel run the latest Node 22 with npm 10 overridespin vulnerable transitive dependencies to patched versions; read the//notes before changing them
TypeScript configuration with path aliases:
@components/*βsrc/components/*@layouts/*βsrc/layouts/*@js/*βsrc/js/*@config/*βsrc/config/*@assets/*,@images/*,@videos/*βsrc/assets/...@/*βsrc/*
npm run buildNote: With the Vercel adapter, npm run preview is not supported. To test the built site locally, serve the static output (e.g. npx serve .vercel/output/static -p 4321; the API routes are not served that way) or push the branch and use the Vercel preview URL posted on the PR.
Search only works after running a production build:
npm run build
npm run winsearch # or osxsearch
npm run dev- Plumber CLI: github.com/getplumber/plumber, the open-source CI/CD security scanner, GitHub Action and GitLab CI component
- Plumber Platform: continuous CI/CD security posture for organizations, book a demo
- Plumber Radar: getplumber.io/radar, the public scan of open-source projects
- Discord Community: getplumber.io/discord
- Support Email: hello@getplumber.io
- Astro Documentation
- Astro Discord
- Tailwind CSS Documentation
- MDX Documentation
- Keystatic Documentation
- Expressive Code
- Pagefind - Static search
- Vercel - Deployment platform
- semantic-release - Site releases
When contributing content:
- Follow the established patterns in existing content and the copy conventions above
- Use the frontmatter schemas defined in
content.config.ts - Test locally before committing
- Ensure all images are optimized
- Run linting:
npm run format - Write conventional commit messages (see Release process)
CI and Vercel install with npm 10. A package-lock.json written by npm 11+ omits transitive dependencies of platform-specific optional packages that are not installed locally, and npm ci then fails in CI with Missing: <pkg> from lock file. Rules:
-
Never commit a lockfile written by npm 11+. A plain
npm installwith a newer local npm silently rewrites it. -
To update or regenerate the lockfile, resolve from the registry with npm 10 and without a
node_modulesnearby (npm otherwise rebuilds the lock from the local single-platform tree):mkdir /tmp/lockgen && cp package.json /tmp/lockgen && cd /tmp/lockgen npx -y npm@10 install --package-lock-only cp package-lock.json <repo>/package-lock.json
-
To resolve a CVE, prefer bumping the existing
overridesentry; add a new override only when a direct dependency update cannot fix it. Dependencies bundled inside another package cannot be fixed by overrides. -
Validate before committing, which is what CI enforces:
npx -y npm@10 ci --dry-run node scripts/npm-audit.mjs --audit-level=moderate node scripts/npm-audit.mjs --omit=dev --audit-level=high npm run lint npm run build
Every action our workflows use is locked in .github/workflows/actions.lock: its commit, its owner and repository ids, and the actions it calls in turn. The Lockfile check fails a PR whose workflows the lockfile doesn't fully cover.
- After adding a workflow or changing any
uses:, rungh actions-lockfrom the repository root (install it withgh extension install github/gh-actions-lock) and commit the updated lockfile with the workflow change. - Never edit
actions.lockby hand. - Dependabot doesn't onboard a new workflow: that one needs
gh actions-lockby hand. If a Dependabot bump PR fails theLockfilecheck, rungh actions-lockon its branch. - Optional, before committing:
gh actions-lock --verify-local --no-fixchecks coverage offline. CI runs the fullgh actions-lock --verify. - Review a lockfile change as a dependency change: a changed
commitis new code that will run, and a changedowner_idorrepo_idmeans the repository behind the name is not the one we locked. - Workflows that publish (Release, the deploys) restore no npm cache and keep write permissions at the job level; keep it that way, OpenSSF Scorecard and Plumber both check for it.
See license details at the main Plumber project repository.
- Technical Issues: Open an issue in the repository
- Content Questions: Contact via Discord or support email
- Theme/Styling: See
src/styles/for the theme configuration
Built with β€οΈ by the Plumber team
Leaking CI/CD pipelines kill your company. Plumber prevents it.
