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.
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.
| Check | Reusable workflow | Present when | What it runs |
|---|---|---|---|
ci / pr-policy | app-pr-policy.yml, from its own caller pr-policy.yml | ci and commits | frappe-nix policy --pr: the base branch, the title and every commit |
ci / lint | app-lint.yml | ci | frappe-nix gate lint |
ci / typecheck | app-typecheck.yml | ci and typescript (with a TypeScript project), or tests.js-unit with unit tests | frappe-nix gate typecheck |
ci / test | app-test.yml | ci and any of tests, python-types, nix-lint or a non-empty shell-checks | frappe-test --ci in one Nix dev-shell entry |
ci / marketplace | app-marketplace.yml | ci and listing | frappe-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.
| Step | Module | What |
|---|---|---|
| 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-cooldown | dependabot | Every .github/dependabot.yml entry, including those in the app's own updates region, has a cooldown. |
| reusable-pins | ci | Every 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. |
| customizations | test-utils | frappe-nix minibench --mode customizations, then validate_customizations and clean_customized_doctypes from the mini-bench. |
| semgrep | semgrep | frappe'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-lint | yarn -s ci:lint, when package.json has that script. |
frappe-nix gate typecheck
| Step | Module | What |
|---|---|---|
| frappe-path | FRAPPE_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-modules | typescript | yarn 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. |
| typecheck | typescript | yarn -s typecheck: the managed TypeScript solution, then each SPA's own check. |
| unchecked-js | typescript with check-js | frappe-nix unchecked-js --stale, while [[tool.frappe-nix.unchecked-js]] lists anything. |
| js-unit | tests with js-unit | At least one test/unit/**/*.test.ts is tracked, then yarn -s test:unit. |
| nested | yarn install and typecheck in each nested frontend that has that script. | |
| doctypes | typescript | When 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-consumer | typescript | frappe-types audit-consumer: --strict with typescript.audit-consumer = true, otherwise an advisory notice. |
| ci-typecheck | yarn -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 gateEach 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
| Caller | Reusable workflow | Present when | What it does |
|---|---|---|---|
release.yml | app-release.yml | ci and releases | release-please on the integration branch, CI on its release PR, and the fast-forward of the release branch (see GitHub settings) |
deps.yml | app-deps.yml | ci and dependabot | Relock and sync after a flake bump, auto-merge by the decision table, the sweep, and the weekly Python relock |
nightly.yml | app-nightly.yml | ci with ci.nightly | The integration suites, screenshots, the listing's links, code duplication, and the drift reminders |
assets.yml | pilot's app-assets.yml | pilot-assets | pilot'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 needsnix/uv.lockandnix/node-locks/**regenerated.relock-planruns 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 trackstypes/doctypes.d.ts, the new pins' DocTypes make it stale, sorelock-planalso regenerates it with the doctypes check's owngen-registrycommand, 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 / typecheckthen reports the stale file as before.relock-push, on a GitHub-hosted runner, checks that patch (onlynix/uv.lock,nix/node-locks/**andtypes/doctypes.d.ts, each a plain file, with no rename, mode change or symlink;flake.lockis 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 onfiles.pythonhosted.organd named for that package and version, every yarnresolvedURL the npm registry's tarball of the entry's own name and version, and a node-lock stamp whoseforcedis 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 labelledneeds-review. Then it commits to the PR branch and re-runs CI there. A PR that movesfrappe-nixor the standards profile is closed: frappe-nix moves with frappe-nix'srollout.yml, the profile withfrappe-nix repo rollout --profile-to(see Versioning and GitHub settings);frappe-nix repo rolloutis the manual fallback for both. Whether it does is computed again from the PR'sflake.lockin the hosted jobs (relock-pushandauto-merge), never taken fromrelock-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 untilrelock-pushorauto-mergeenables it for that head, and a head no job reached a verdict on (a job failed, or the relock was not pushed) is labelledneeds-reviewwith 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 labelledneeds-reviewand the log namesfrappe-nix repo doctor.Ecosystem Merged automatically Labelled needs-reviewGitHub Actions never every one: the action or workflow it moves runs where the GitHub App's key can be npm minor and patch /docs-site, and any majoruv ( /tools)minor and patch major pre-commit the hooksgroupthe test-utilsgroupnix after the relock lands, or when there was nothing to relock, if the lock check says ok a relock that adds a package; a move of frappe-nixorstandards-profileis closed insteadgit submodules always That table is the default,
dependabot.auto-merge-policy = "decision-table". With"all", every Dependabot PR gets auto-merge, majors and theneeds-reviewcolumn 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 movesfrappe-nixorstandards-profileis still closed, and a GitHub Actions bump is still labelledneeds-review. Thefrappe-nixpins in the callers are never merged either: Dependabot ignores them (asAvunu/frappe-nixandAvunu/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'srollout.yml(orfrappe-nix repo rolloutby 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 falseIgnores. A managed
.github/dependabot.ymlentry takes Dependabotignoreconditions fromdependabot.ignore, keyed by ecosystem (every managed entry of it) or by<ecosystem>:<directory>(one entry). Sync gives a notice when an app'snpm:/<dir>key names no managed entry. A major cap the app holds on purpose goes there, because theupdatesregion can't redefine a managed entry:ignore = { npm = [{ dependency-name = "tailwindcss", versions = [">=4"] }] }.The sweep re-dispatches
ci.ymlandpr-policy.ymlon bot PRs that have noci / *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 -- --upgradeand openschore(deps): relock pythononstandards/relock-python. It moves only Python packages, never the frappe and sibling pins, so it leavestypes/doctypes.d.tsalone.Keeping bot PRs current (
dependabot.update-branches, off by default).deps.ymlthen also runs on every push to the integration branch, and itsupdate-branchesjob, 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 thestandards/*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 rebaseonly from a person with push access, and answers a GitHub App orgithub-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_TOKENraises no event, so the job waits for the new head and dispatchesci.ymlandpr-policy.ymlon 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)
| Job | Runs when | What |
|---|---|---|
| integration | tests | frappe-test --ci --keep-up, bench build, then each nightly-suites command against the running site |
| shots | screenshots | frappe-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" |
| links | listing | The listing's website and documentation answer 200; with icons, the raster icon checks |
| duplication | test-utils with check_code_duplication | Informational |
| registry-refresh | listing.publish | Rebuilds the open registry PR on upstream main |
| drift | always | Keeps 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:
| Key | Default | Why |
|---|---|---|
ci | 0 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) |
release | 30 5 * * * | The same, for the release PR |
deps-sweep | 0 9 * * * | The sweep, and with dependabot.update-branches the daily pass that keeps bot PRs current |
deps-relock | 0 8 * * 1 | The weekly Python relock |
nightly | 0 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-commandandflakes, the daemon running, and the runner's user intrusted-users: the jobs passaccess-tokensthroughNIX_CONFIGand a binary cache's substituters through the user's configuration, where a hosted runner would edit/etc/nix/nix.confwithsudo. The local/nix/storepersists between jobs and is the cache.Tools on
PATH: bash, coreutils, git, gnutar, gzip and zstd (checkout andactions/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 = trueon NixOS):setup-node,setup-uvand the Python uv downloads are binaries built for a standard Linux, which run only through it.No
sudoand noapt: themarketplacejob builds mysqlclient with gcc, pkg-config and the MariaDB client headers from nixpkgs, andlintandtypecheckinstall 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>, orattic:<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.
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.ymldoes push one, the caller rewrite of a frappe-nix release, with a separate rollout App, whose key only frappe-nix'sfrappe-nix-rolloutenvironment holds (see Rollout); this App's key is not needed for it.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
dependabotmodule 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 readvars.<name> || secrets.<name>.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.
| Job | With the App's token |
|---|---|
release release-please | opens and updates the release PR, and tags the release; dispatch-ci is skipped |
deps relock-push | pushes the relock commit and enables auto-merge; CI is not dispatched |
deps update-branches | updates bot PRs from the integration branch, asking for Workflows write too when the App has it; CI is not dispatched |
deps auto-merge | enables auto-merge, labels or closes the Dependabot PR |
deps relock-upgrade-push | pushes standards/relock-python, opens its PR and enables auto-merge; CI is not dispatched |
nightly shots-push | pushes 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.ymlmakes 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 inworkflow-lint.release-tag-workflows(empty by default): the generated.github/zizmor.ymlmakes each listed workflow aref-pin, and the lint gate'sreusable-pinsstep 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 withfrappe-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, whateverci.runs-onsays: 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 withcontents: readand 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-branchesasks 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.ymlis the one workflow that changes another repository's workflow files. The app's code (its flake, relock, uv, yarn, sync) runs only in itsplanjob, 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 inpublish, from that App's key, an environment secret offrappe-nix-rolloutthat no other job, branch or workflow can read, after the tag'sfrappe-nix ci verify-rollout-patchaccepted the patch (its lock files read withverify-relock's strict rules, ci/lockcheck.py) and the job re-derived its tree.publishturns 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 ownghtoken is used only byfrappe-nix repo rolloutrun 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 fromAvunu/frappe-nixalone, at a full revision (any other repository in that lock is refused), with every dependency from frappe-nix-tools' committeduv.lockby hash and as a wheel (uv pip install --require-hashes --no-build), and only frappe-nix-tools itself built, against a hashedflit_core. Their uv is pinned (setup-uv'sversion:), without the Actions cache, and reads no configuration file.rollout.yml'spublishruns the released tag's own frappe-nix-tools (nix run github:Avunu/frappe-nix/<tag sha>#frappe-nix) instead.relock-upgrade-pushandshots-pushbuild 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.