↵select↑↓navigateescclose
Search frappe-nix

App standards

CI

The gate commands and the reusable workflows behind ci / lint, typecheck, test, marketplace and pr-policy, and the files that call them.

Updated
Tags
  • app-standards
  • ci
  • workflows
On this page

An opted-in app with the ci module on gets small caller workflows in .github/workflows/, rendered by frappe-init --sync. Each one calls a reusable workflow in frappe-nix, pinned to the frappe-nix revision the app's flake.lock locks. The gates are commands, not YAML: every step of lint, typecheck and marketplace is frappe-nix gate <gate>, and test is frappe-test --ci, so any CI, or a laptop, runs exactly what GitHub runs.

Nothing here reaches an app that has not opted in, and within an opted-in app a workflow or job exists only while its module is on. Turning a module off and running frappe-init --sync deletes what it rendered.

The gates

Each gate is one required check with a fixed name. The caller job that runs it is named ci, and the reusable job is named after the gate, so GitHub reports ci / <gate> whatever else the app enables.

CheckReusable workflowPresent whenWhat it runs
ci / pr-policyapp-pr-policy.yml, from its own caller pr-policy.ymlci and commitsfrappe-nix policy --pr: the base branch, the title and every commit
ci / lintapp-lint.ymlcifrappe-nix gate lint
ci / typecheckapp-typecheck.ymlci and typescript (with a TypeScript project), or tests.js-unit with unit testsfrappe-nix gate typecheck
ci / testapp-test.ymlci and any of tests, python-types, nix-lint or a non-empty shell-checksfrappe-test --ci in one Nix dev-shell entry
ci / marketplaceapp-marketplace.ymlci and listingfrappe-nix gate marketplace

pr-policy has a caller of its own so that retitling a PR re-runs only that check. If ci.yml re-ran on edited and skipped test, the skipped run would replace an earlier failure, and GitHub counts a skipped check as passing.

The shipped form is one reusable workflow per gate, each called from a job named ci. selftest-ci.yml asserts on every run that GitHub reports these jobs as ci / lint, ci / typecheck and ci / marketplace.

app-test.yml also comments its report on the pull request, from a job of its own, ci / test-report, which is not a gate and is never required: one comment per app, edited on every run, holding frappe-test's summary.md. That is the verdict, the stage table, each failed test with the end of its traceback, and the coverage, total and per module. It is the only job in the gates with pull-requests: write, so the caller grants test that and every other gate read. A fork's pull request gets no comment, because its token is read-only.

The required checks a ruleset lists are computed from the same set of gates (see GitHub settings), so a gate that is off is never required, and turning one on never renames another.

frappe-nix gate lint

Every step runs, and the gate fails after the last one if any failed. A step whose module is off, or whose file the app doesn't have, is reported as skipped with the reason.

StepModuleWhat
sync-check(always)frappe-nix sync --check: the managed files match what this frappe-nix renders. In CI it also checks the installed tool is the revision flake.lock pins (--expect-rev).
dependabot-cooldowndependabotEvery .github/dependabot.yml entry, including those in the app's own updates region, has a cooldown.
reusable-pinsciEvery reusable workflow call in .github/workflows (jobs.<id>.uses) is pinned by a full commit SHA, or by the exact release tag (vX.Y.Z) of a workflow listed in workflow-lint.release-tag-workflows. A branch is always refused.
prek(when .pre-commit-config.yaml is live)uv run --frozen --project tools prek run --all-files --show-diff-on-failure. A hook that rewrites a file fails.
customizationstest-utilsfrappe-nix minibench --mode customizations, then validate_customizations and clean_customized_doctypes from the mini-bench.
semgrepsemgrepfrappe's semgrep rules at the revision frappe-nix pins, frappe-nix's test-correctness rules over test_*.py, and the app's own semgrep/ rules.
ratchet(each rule its module)frappe-nix ratchet --base <merge-base>: coverage floor, ty: ignore count, semgrep baseline, exemption lists. Skipped on pushes and schedules.
ci-lintyarn -s ci:lint, when package.json has that script.

frappe-nix gate typecheck

StepModuleWhat
frappe-pathFRAPPE_PATH is the app's locked frappe tree (frappe-nix pin-path frappe), fetched and hash-checked. Later steps and the app's scripts read it.
frappe-node-modulestypescriptyarn install in frappe's tree, when [tool.frappe-nix] frappe-node-modules = true. The tree must be writable, so the workflow reads it with pin-path --writable (a copy in .dev-dist/pins/, never the read-only Nix store path a NixOS runner has), and a read-only FRAPPE_PATH is first copied to .dev-dist/frappe-path/, which FRAPPE_PATH then names.
typechecktypescriptyarn -s typecheck: the managed TypeScript solution, then each SPA's own check.
unchecked-jstypescript with check-jsfrappe-nix unchecked-js --stale, while [[tool.frappe-nix.unchecked-js]] lists anything.
js-unittests with js-unitAt least one test/unit/**/*.test.ts is tracked, then yarn -s test:unit.
nestedyarn install and typecheck in each nested frontend that has that script.
doctypestypescriptWhen types/doctypes.d.ts is tracked: a doctypes mini-bench, then frappe-types gen-registry … --check, with the siblings hooks.required_apps names typed in full. To refresh the file, run the same command without --check: frappe-nix ci relock-doctypes does (after yarn install), and so does a nix bump's relock.
audit-consumertypescriptfrappe-types audit-consumer: --strict with typescript.audit-consumer = true, otherwise an advisory notice.
ci-typecheckyarn -s ci:typecheck, when present.

frappe-nix gate marketplace

One step: frappe-nix listing check (see Marketplace).

Running a gate anywhere

The gate needs the app's tools installed, which is what the reusable workflow does before it. On any other CI, or locally:

yarn install --frozen-lockfile                       # when package.json is live
uv sync --frozen --project tools                     # when tools/pyproject.toml is live
rev="$(jq -r '.nodes[.nodes.root.inputs["frappe-nix"]].locked.rev' flake.lock)"
uv tool install --python 3.14 "frappe-nix-tools @ git+https://github.com/Avunu/frappe-nix@${rev}#subdirectory=py/frappe_nix_tools"

frappe-nix gate lint --base "$(git merge-base origin/develop HEAD)"
frappe-nix gate typecheck
frappe-nix gate marketplace
FRAPPE_NIX_CI=1 nix develop --no-pure-eval -c frappe-test --ci   # the test gate

Each gate writes .dev-dist/gate/<gate>.json with every step's status. --format github groups each step's output in the log and annotates failures. Without --base, the ratchet runs only on a pull request (BASE_SHA) or a dispatch (origin/<integration branch>), as in CI.

The other workflows

CallerReusable workflowPresent whenWhat it does
release.ymlapp-release.ymlci and releasesrelease-please on the integration branch, CI on its release PR, and the fast-forward of the release branch (see GitHub settings)
deps.ymlapp-deps.ymlci and dependabotRelock and sync after a flake bump, auto-merge by the decision table, the sweep, and the weekly Python relock
nightly.ymlapp-nightly.ymlci with ci.nightlyThe integration suites, screenshots, the listing's links, code duplication, and the drift reminders
assets.ymlpilot's app-assets.ymlpilot-assetspilot's release assets, dispatched by the release workflow

Dependency PRs (deps.yml)

Dependabot opens the PRs; deps.yml decides what happens to them.

  • A nix bump (frappe and the siblings) changes flake.lock, and usually needs nix/uv.lock and nix/node-locks/** regenerated. relock-plan runs the PR's code with no write token, makes the relock and sync patch, and refuses one that touches .github/workflows/. In an app that tracks types/doctypes.d.ts, the new pins' DocTypes make it stale, so relock-plan also regenerates it with the doctypes check's own gen-registry command, less --check (frappe-nix ci relock-doctypes), and the patch carries it. If any step of that fails, the relock is pushed without it and the run has a notice; ci / typecheck then reports the stale file as before. relock-push, on a GitHub-hosted runner, checks that patch (only nix/uv.lock, nix/node-locks/** and types/doctypes.d.ts, each a plain file, with no rename, mode change or symlink; flake.lock is Dependabot's, and a relock never changes it), applies it, and checks what the lock files say against the PR's merge-base (frappe-nix ci verify-relock): every new or changed Python package from PyPI, its files on files.pythonhosted.org and named for that package and version, every yarn resolved URL the npm registry's tarball of the entry's own name and version, and a node-lock stamp whose forced is unchanged. A lock that breaks one of those is not pushed; one that adds a package, or moves a git source to another commit, is pushed with auto-merge off and labelled needs-review. Then it commits to the PR branch and re-runs CI there. A PR that moves frappe-nix or the standards profile is closed: frappe-nix moves with frappe-nix's rollout.yml, the profile with frappe-nix repo rollout --profile-to (see Versioning and GitHub settings); frappe-nix repo rollout is the manual fallback for both. Whether it does is computed again from the PR's flake.lock in the hosted jobs (relock-push and auto-merge), never taken from relock-plan, which ran the PR's code. GitHub keeps auto-merge on across a push, so every new head of a nix PR starts with it off until relock-push or auto-merge enables it for that head, and a head no job reached a verdict on (a job failed, or the relock was not pushed) is labelled needs-review with auto-merge off. The weekly relock's lock files are checked against both the commit it relocked and the integration branch's head.

  • Auto-merge follows this table. It is enabled only when the integration branch requires every enabled gate's ci / <gate> check, and the repository allows auto-merge. Otherwise the PR is labelled needs-review and the log names frappe-nix repo doctor.

    EcosystemMerged automaticallyLabelled needs-review
    GitHub Actionsneverevery one: the action or workflow it moves runs where the GitHub App's key can be
    npmminor and patch/docs-site, and any major
    uv (/tools)minor and patchmajor
    pre-committhe hooks groupthe test-utils group
    nixafter the relock lands, or when there was nothing to relock, if the lock check says oka relock that adds a package; a move of frappe-nix or standards-profile is closed instead
    git submodulesalways

    That table is the default, dependabot.auto-merge-policy = "decision-table". With "all", every Dependabot PR gets auto-merge, majors and the needs-review column included, and so does the nightly screenshots PR: the required checks alone decide what merges, and a PR whose checks fail stays open for a person. Three rows don't change: a nix bump still waits for its relock and its lock check, one that moves frappe-nix or standards-profile is still closed, and a GitHub Actions bump is still labelled needs-review. The frappe-nix pins in the callers are never merged either: Dependabot ignores them (as Avunu/frappe-nix and Avunu/frappe-nix/*, since it names a reusable workflow by its path), and a PR that moves only those pins is closed, because frappe-nix moves only with frappe-nix's rollout.yml (or frappe-nix repo rollout by hand). Auto-merge is always enabled for the head the decision was made on (gh pr merge --match-head-commit).

    [dependabot]
    auto-merge = true
    auto-merge-policy = "all"   # default "decision-table"
    update-branches = true      # default false
  • Ignores. A managed .github/dependabot.yml entry takes Dependabot ignore conditions from dependabot.ignore, keyed by ecosystem (every managed entry of it) or by <ecosystem>:<directory> (one entry). Sync gives a notice when an app's npm:/<dir> key names no managed entry. A major cap the app holds on purpose goes there, because the updates region can't redefine a managed entry: ignore = { npm = [{ dependency-name = "tailwindcss", versions = [">=4"] }] }.

  • The sweep re-dispatches ci.yml and pr-policy.yml on bot PRs that have no ci / * run on their head, which covers dispatches a Dependabot-triggered job could not make. With a GitHub App there is nothing to dispatch: the App's pushes start CI themselves.

  • The weekly relock runs nix run .#relock -- --upgrade and opens chore(deps): relock python on standards/relock-python. It moves only Python packages, never the frappe and sibling pins, so it leaves types/doctypes.d.ts alone.

  • Keeping bot PRs current (dependabot.update-branches, off by default). deps.yml then also runs on every push to the integration branch, and its update-branches job, on that push and on the sweep's schedule, looks at every open bot maintenance PR into the integration branch that is behind it: Dependabot's, and the standards/* branches a bot pushes (the weekly relock, the screenshots). Release-please's release PR and any other bot's PR (a coding agent's, say) are left alone. Each bot PR that is behind is updated through GitHub's update-branch API, which merges the integration branch into it. Dependabot's PRs are no exception: Dependabot takes @dependabot rebase only from a person with push access, and answers a GitHub App or github-actions[bot] with "only users with push access can use that command". Once its branch is updated, Dependabot stops rebasing that PR, so a later conflict needs a person; auto-merge usually lands it first. At most ten PRs move per run, and a PR that is up to date is left alone, so a run that repeats changes nothing. A conflict, or a merge that brings in .github/workflows/ changes without a GitHub App that has Workflows write, leaves the PR as it is with a notice.

    Each update starts the PR's CI again when it is made with the App's token. One made with GITHUB_TOKEN raises no event, so the job waits for the new head and dispatches ci.yml and pr-policy.yml on it (the sweep retries what it misses). Updates are not needed for a merge, because the integration ruleset doesn't require a branch to be up to date; they make each PR's checks run against what it would merge into.

No workflow ever pushes a change to .github/workflows/: GitHub refuses that from GITHUB_TOKEN, so every pushing job refuses such a patch first.

Nightly (nightly.yml)

JobRuns whenWhat
integrationtestsfrappe-test --ci --keep-up, bench build, then each nightly-suites command against the running site
shotsscreenshotsfrappe-shots --update; screenshots that changed by at least screenshots.change-threshold go to a standards/screenshots PR, merged automatically only under dependabot.auto-merge-policy = "all"
linkslistingThe listing's website and documentation answer 200; with icons, the raster icon checks
duplicationtest-utils with check_code_duplicationInformational
registry-refreshlisting.publishRebuilds the open registry PR on upstream main
driftalwaysKeeps the "frappe-nix vX.Y.Z available" and "standards profile update available" issues, which name the frappe-nix repo rollout command

Schedules

Every schedule is a profile parameter, ci.schedules, and "" turns one off:

KeyDefaultWhy
ci0 6 * * *An auto-merge made with GITHUB_TOKEN raises no push, so the integration branch's checks catch up daily (one enabled by a GitHub App does)
release30 5 * * *The same, for the release PR
deps-sweep0 9 * * *The sweep, and with dependabot.update-branches the daily pass that keeps bot PRs current
deps-relock0 8 * * 1The weekly Python relock
nightly0 7 * * *The nightly jobs

The defaults suit a public repository, where Actions minutes are free. A private one that pays for minutes turns off what it doesn't need; with ci or release off and auto-merge on, the branch status and the release PR catch up only on the next human push, and frappe-nix repo doctor says so.

Runners

Every Linux job in frappe-nix's reusable workflows runs on ubuntu-latest unless the app's ci.runs-on names another runner: a runner label, or a list of labels a runner must all have. A profile sets it in [ci], an app in [tool.frappe-nix.ci]:

[ci]
runs-on = ["self-hosted", "nixos"]

frappe-init --sync then passes it, as JSON, to every job that calls a frappe-nix workflow (ci.yml, pr-policy.yml, release.yml, deps.yml and nightly.yml):

    with:
      app: my_app
      integration-branch: develop
      runs-on: '["self-hosted","nixos"]'

Unset, the callers carry no runs-on line and are byte for byte what they were before the key existed. assets.yml calls pilot's own workflow, which takes no runner, so it stays on GitHub's runners.

A pull request from a fork always runs on ubuntu-latest, whatever ci.runs-on says: each job's runs-on is ${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || fromJSON(inputs.runs-on) }}, so code from outside the repository never runs on your machine.

The jobs that hold a write token for pushing, merging or releasing (release release-please and fast-forward; deps relock-push, auto-merge, sweep, update-branches and relock-upgrade-push; nightly shots-push) always run on ubuntu-latest, and ci.runs-on doesn't move them: a self-hosted runner keeps its home and Nix store between jobs and repositories, so the GitHub App's key never goes there. They are short and run no Nix builds; the jobs that do (relock-plan, relock-upgrade-plan, nightly shots) follow ci.runs-on.

A self-hosted NixOS runner

The jobs expect a plain Linux machine with Nix, not GitHub's Ubuntu image. On such a runner (runner.environment is self-hosted) they skip the hosted image's disk cleanup, the Nix installer, magic-nix-cache and apt-get, and get what those provided from Nix instead. The runner needs:

  • Nix with nix-command and flakes, the daemon running, and the runner's user in trusted-users: the jobs pass access-tokens through NIX_CONFIG and a binary cache's substituters through the user's configuration, where a hosted runner would edit /etc/nix/nix.conf with sudo. The local /nix/store persists between jobs and is the cache.

  • Tools on PATH: bash, coreutils, git, gnutar, gzip and zstd (checkout and actions/cache), and gh, jq, curl, unzip, xz, findutils, gnugrep, gnused, gawk, diffutils, which and nodejs for the job scripts and the setup actions.

  • nix-ld (programs.nix-ld.enable = true on NixOS): setup-node, setup-uv and the Python uv downloads are binaries built for a standard Linux, which run only through it.

  • No sudo and no apt: the marketplace job builds mysqlclient with gcc, pkg-config and the MariaDB client headers from nixpkgs, and lint and typecheck install yarn classic with npm when the runner has none.

A runner takes one job at a time, so one runner per repository runs that repository's jobs in turn. Its home directory outlives the job and is shared by every runner of the same user, so the jobs keep uv's tools (tool-dir, tool-bin-dir) and a binary cache's credentials (XDG_CONFIG_HOME) in the job's $RUNNER_TEMP. The runner's own cleanup of $RUNNER_TEMP skips read-only files (copies out of the Nix store), so each job's first step, on a self-hosted runner only, clears what an earlier job left there. The workspace outlives the job too, and a job that was interrupted leaves read-only files in it (such as .frappe-nix/bench/.apps.new) that checkout then fails to remove with EACCES, so the same step makes the workspace's existing contents writable and leaves the cleaning to checkout.

The binary cache

The Nix jobs (test, the relock and the nightly jobs) use a binary cache when the organisation sets one, with no change to any app:

  • the Actions variable FRAPPE_NIX_CACHE: empty for none, cachix:<name>, or attic:<endpoint>/<cache>;

  • the secret FRAPPE_NIX_CACHE_TOKEN, which can write. It is an Actions secret only, and only a push or schedule on the integration branch ever sees it;

  • the secret FRAPPE_NIX_CACHE_READ_TOKEN, which can only read. It is an Actions and a Dependabot secret; leave it unset for a public cache.

Pull requests, Dependabot runs and every job that resolves new third-party code get the read token or none, so nothing they run can poison the cache.

Private sources

An org profile, a frappe fork or a sibling app in a private repository needs a token to fetch: set the secret FRAPPE_NIX_FETCH_TOKEN (Contents read on those repositories; also a Dependabot secret when dependabot is on). The callers pass it to every reusable workflow, which gives it to pin-path and minibench, and to Nix as an access token.

A GitHub App

What a workflow pushes, opens or merges with GITHUB_TOKEN starts no workflow on its own, or starts one that waits for a maintainer to approve it (a repository that asks for approval from first-time contributors counts github-actions[bot] as one). So without an App, the release PR, the relock commits on Dependabot's PRs, the weekly relock PR and the screenshots PR get their CI by dispatch, and the merges auto-merge makes are only noticed by the ci and release crons.

An organisation that has a GitHub App can hand it to these workflows instead. Bot branches and PRs then start CI the normal way, with nothing waiting for approval and nothing to dispatch, and an auto-merged PR raises a push, so CI and release-please run on the integration branch at once.

  1. Create a GitHub App owned by the organisation, with the repository permissions Contents and Pull requests set to read and write, and install it on the app repositories (or all of them). It needs no webhook. The app workflows mint tokens that ask for Contents and Pull requests write only; they never push a workflow file, so the App needs no Workflows permission for them. frappe-nix's own rollout.yml does push one, the caller rewrite of a frappe-nix release, with a separate rollout App, whose key only frappe-nix's frappe-nix-rollout environment holds (see Rollout); this App's key is not needed for it.

  2. Store its ID (the App ID or its client ID) in an organisation Actions variable, and generate a private key and store the PEM in an organisation Actions secret. With the dependabot module on, also store the key as an organisation Dependabot secret of the same name, and the ID too if Dependabot's runs can't read the variable: the callers read vars.<name> || secrets.<name>.

  3. Name them in the org profile's [ci] (or an app's [tool.frappe-nix.ci]), and roll the profile out:

    [ci.github-app]
    app-id = "ORG_CI_APP_ID"            # the variable (or secret) with the App's ID
    private-key = "ORG_CI_PRIVATE_KEY"  # the secret with its private key

These are the names of a variable and a secret, never their values; frappe-init --sync refuses anything that isn't a valid name. It then passes them to release.yml, deps.yml and, with screenshots on, nightly.yml:

    secrets:
      FETCH_TOKEN: ${{ secrets.FRAPPE_NIX_FETCH_TOKEN }}
      APP_ID: ${{ vars.ORG_CI_APP_ID || secrets.ORG_CI_APP_ID }}
      APP_PRIVATE_KEY: ${{ secrets.ORG_CI_PRIVATE_KEY }}

The App's ID travels as a secret because a caller's with: can't read secrets, and a run that Dependabot started sees only Dependabot secrets.

JobWith the App's token
release release-pleaseopens and updates the release PR, and tags the release; dispatch-ci is skipped
deps relock-pushpushes the relock commit and enables auto-merge; CI is not dispatched
deps update-branchesupdates bot PRs from the integration branch, asking for Workflows write too when the App has it; CI is not dispatched
deps auto-mergeenables auto-merge, labels or closes the Dependabot PR
deps relock-upgrade-pushpushes standards/relock-python, opens its PR and enables auto-merge; CI is not dispatched
nightly shots-pushpushes standards/screenshots, labels and opens its PR; CI is not dispatched

Unset (the default), or with the variable or the secret empty in a run, every job uses GITHUB_TOKEN and dispatches CI exactly as before, and the callers are byte for byte what they were before the key existed. The fast-forward of the release branch uses the App too, when it has Workflows write: GitHub refuses to move a branch with GITHUB_TOKEN onto commits that change .github/workflows/, which most releases do (Dependabot action bumps, frappe-init --sync). It asks for contents and workflows write; an App without Workflows write can't mint that token, and the move falls back to GITHUB_TOKEN. If the release-branch ruleset restricts updates, add the App to its bypass list. pilot's assets.yml dispatch keeps GITHUB_TOKEN.

Security notes

  • Every third-party action is pinned to a commit SHA with a version comment, and .github/zizmor.yml makes zizmor enforce it. A reusable workflow call may instead name its exact release tag (@vX.Y.Z) when the profile or the app lists that workflow in workflow-lint.release-tag-workflows (empty by default): the generated .github/zizmor.yml makes each listed workflow a ref-pin, and the lint gate's reusable-pins step refuses a branch in any reusable call, which zizmor alone cannot tell apart from a tag. Dependabot moves third-party pins; frappe-nix's own pin moves only with frappe-init --sync.

  • Every checkout uses persist-credentials: false. The three jobs that push (relock-push, relock-upgrade-push and nightly shots-push) push to an explicit token URL from that step alone.

  • Every job that can hold the GitHub App's key or a write token for pushing, merging or releasing runs on ubuntu-latest, whatever ci.runs-on says: a self-hosted runner is shared with other repositories' jobs, which could read what such a job leaves behind. Those jobs run no app or dependency code. The relock and screenshot jobs are split in two: a plan job runs relock or frappe-shots with contents: read and only the read secrets, and uploads a patch; the hosted push job checks that patch (only the paths the plan job writes, each an added, modified or deleted plain file: no rename, copy, mode change, symlink or .github/ path) before it mints the App's token.

  • A GitHub App's token is minted only in the jobs that push, open PRs, label or enable auto-merge, after any step that runs the app's or third-party code, for the current repository alone and with Contents and Pull requests write only (update-branches asks for Workflows write too, and without it falls back to those two). It is revoked when the job ends.

  • Every workflow starts from permissions: {}, and each job asks for exactly what it uses.

  • frappe-nix's rollout.yml is the one workflow that changes another repository's workflow files. The app's code (its flake, relock, uv, yarn, sync) runs only in its plan job, which holds a read-only token, no secret, no cache and no environment, as an unprivileged user on a GitHub-hosted runner. The rollout App's token (that one repository; Contents, Pull requests, Workflows and Issues write) is minted only in publish, from that App's key, an environment secret of frappe-nix-rollout that no other job, branch or workflow can read, after the tag's frappe-nix ci verify-rollout-patch accepted the patch (its lock files read with verify-relock's strict rules, ci/lockcheck.py) and the job re-derived its tree. publish turns off an earlier run's auto-merge before it pushes, and enables auto-merge only for the commit it pushed (--head-sha). The user's own gh token is used only by frappe-nix repo rollout run by hand.

  • The jobs that hold a write token never install frappe-nix-tools from the PR's flake.lock: they read the integration branch's. The jobs that can hold the GitHub App's key install it from Avunu/frappe-nix alone, at a full revision (any other repository in that lock is refused), with every dependency from frappe-nix-tools' committed uv.lock by hash and as a wheel (uv pip install --require-hashes --no-build), and only frappe-nix-tools itself built, against a hashed flit_core. Their uv is pinned (setup-uv's version:), without the Actions cache, and reads no configuration file. rollout.yml's publish runs the released tag's own frappe-nix-tools (nix run github:Avunu/frappe-nix/<tag sha>#frappe-nix) instead.

  • relock-upgrade-push and shots-push build on the commit their plan job ran on only when it is a full SHA the integration branch already holds (git merge-base --is-ancestor), and read the required gates for auto-merge from the integration branch's head.