Skip to content

Development

Toolchain

Development toolchain and tech stack: four bands cover Python and locked dependencies, core libraries and the native Full Disk Access launcher, local Ruff, ty, audit, and prek checks, and pull-request CI and supply-chain checks with GitHub Actions, actionlint, zizmor, Gitleaks, actions.lock, Zensical, Homebrew, and the Brewfile.

  • Python 3.15 in a single-file uv script with inline dependencies, locked in llm_dependabot.py.lock; there is no virtual environment to manage.

  • Ruff lints (with every rule enabled) and formats.

  • ty type-checks against the script's own environment.

  • prek runs the git hooks.

  • actionlint, zizmor, and Gitleaks lint and audit the workflows and scan for secrets, and the gh-actions-lock extension maintains the workflow dependency lockfile.

  • uv audit checks the locked dependencies of both scripts and the docs project against the OSV vulnerability database.

  • Zensical builds this documentation into a website. It is the only dependency of the docs-only uv project in pyproject.toml, locked in uv.lock.

  • Homebrew installs the command-line tools listed in the Brewfile.

Every check runs locally, and the GitHub Actions workflows in .github/workflows/ run them again on each pull request:

Workflow Runs Trigger
qa.yml make check Pull requests
prek.yml The prek hooks other than Ruff and ty Pull requests
security.yml Gitleaks over the full history and zizmor over the workflows Pull requests
conventional-commits.yml Commit messages and the pull-request title Pull requests
link-check.yml lychee over every link Pull requests
docs.yml Builds the site; deploys it to GitHub Pages from main Pull requests, main, and by hand

Workflow security

The workflows follow the same hardening rules, which AGENTS.md records for agents changing them:

  • Every action is pinned to a full commit SHA with its release in an inline comment, and .github/zizmor.yml makes zizmor reject any other pin.

  • actions.lock in .github/workflows/ is a machine-generated workflow dependency lockfile (in public preview). It records every direct and transitive action with its commit and source repository identity. Run make actions-lock after changing a uses: line; the actions-lock-verify hook fails a commit whose lockfile is stale.

  • The default GITHUB_TOKEN is read-only; only the Pages deployment job can write, and checkouts never keep the token.

  • Every job has a timeout, every workflow cancels superseded runs, and event data reaches scripts only through environment variables.

  • Gitleaks is installed from a release archive pinned by version and SHA-256 checksum. It scans the complete history in CI and the staged diff on every commit.

If your account allows only selected actions, allow these:

  • actions/checkout, actions/upload-pages-artifact, and actions/deploy-pages (and the actions/upload-artifact they use)
  • astral-sh/setup-uv
  • j178/prek-action
  • lycheeverse/lychee-action
  • zizmorcore/zizmor-action (and the github/codeql-action it uses)

Checks

make hooks-install   # once per clone: install the git hooks
make check           # ruff check, ruff format --check, ty check, and audit
make audit           # check locked dependencies for known vulnerabilities
make format          # apply ruff formatting
make hooks           # run every prek hook on all files
make update-deps     # upgrade locked dependencies and prek hook revisions
make actions-lock    # regenerate the workflow dependency lockfile
make actions-lock-verify  # check the lockfile against the workflows
make docs            # build the documentation site, failing on any warning
make docs-serve      # preview the documentation site locally

The hooks in prek.toml run Ruff and ty, lint the workflows with actionlint and audit them with zizmor, verify the workflow lockfile, scan staged changes with Gitleaks, check commit messages against Conventional Commits, tidy whitespace, verify VCS permalinks and hook applicability, block direct commits to main and submodules, and guard against case conflicts, illegal Windows filenames, destroyed symlinks, private keys, large files, and merge-conflict markers. CI skips the hooks that another workflow already runs or that need local tools. A local hook, hooks/check_private_names.py, fails any commit whose files or message name a repository listed in private.yaml, or that adds private.yaml itself.

Documentation site

The pages in docs/ are a Zensical site configured in mkdocs.yml and published at https://www.indrapatil.com/llm-dependabot/. It uses the same theme and set-up as the owner's other documentation sites, and also publishes llms.txt, llms-full.txt, a Markdown copy of every page, and a robots.txt that welcomes AI crawlers. To keep it building:

  • The home page, docs/index.md, only includes README.md, so the README and the site's landing page are the same text. Give its images and links absolute URLs, so they work on GitHub and on the site alike.

  • Add a new page to nav, and to the llmstxt sections, in mkdocs.yml.

  • Link to other pages and images with paths relative to docs/; link to anything outside docs/ with its full GitHub URL, since the site only contains docs/.

  • Use GitHub callouts (> [!NOTE], > [!TIP], > [!IMPORTANT], and > [!WARNING]) for asides: GitHub renders them as alerts and the site as admonitions.

  • overrides/ adds structured data and llms.txt links to every page, and points the home page's edit and view buttons at README.md.

Maintaining llm-dependabot itself

This repository commits its own prompts, so llm-dependabot maintains itself like any other participating repository:

  • update-deps upgrades the locked dependencies and prek hooks.

  • simplify-codebase removes custom code that a newer dependency feature or a proven library makes unnecessary.

Design

DESIGN.md records the visual identity, shared with indrapatil.com. Generated documentation figures follow the documentation-illustrations skill, with their prompts recorded in images/README.md.

Hex sticker and app icon

hextools/ holds the sticker artwork and the R scripts that render docs/images/logo.png, the LLM Dependabot app icon, app/icon.png, and the social preview card, docs/images/social-card.png. See its README.