Continuous integration
The workflows live in .github/workflows/. Every job runs on a GitHub
hosted x86_64 runner, some of them inside a container image pinned by
digest. Most jobs call the same make target a contributor runs locally,
so a failure reproduces with the command named below.
Triggers
Workflow |
Runs on |
|---|---|
|
every pull request, whatever its base, and every push to |
|
a pull request or a push to |
|
a pull request that touches |
|
a pull request being opened, reopened, edited or pushed to |
|
a pull request opened or reopened against |
|
a push to |
|
a |
|
a push to |
Build and tests
ci.yml holds the C build, the tests and the tree gates. Each job is
independent; only examples waits for build.
buildmake allandmake test-uniton Ubuntu 22.04 and 24.04, withCLANG=clang-22and libbpf built from source.fedora-buildmake allandmake test-unitin Fedora 43 and 44 containers, against the distribution libbpf.examplesmake all examples, a dry run ofexamples/demo/setup.sh, the CI release gate example end to end (examples/ci-gate/run.sh) and a check that the block demo artifacts were built.sanitizersand its variantsmake SANITIZE=address,undefined test-unitunder gcc (sanitizers) and under clang (sanitizers-clang),make SANITIZE=thread test-unit(sanitizers-thread), and on Fedora 43 and 44 the address and undefined run followed bymake valgrind-unit(sanitizers-fedora).sanitizers-full-buildmake CC=clang sanitizer-build, which buildsall, the examples,bench_sdk,lota-benchand the syzkaller loader under ASan and UBSan without running them.valgrind,valgrind-smokemake valgrind-unitandmake valgrind-smoke.benchmarksmake bench-cand one iteration ofmake bench-go, to catch a benchmark that no longer builds.fuzzmake fuzz-regress, replaying the committed reproducers (Fuzzing).
Testing describes the targets these jobs call.
Tree gates
Also in ci.yml, each a single make target or script:
format:clang-format-22 --dry-run --Werrorover every.cand.hundersrc/,include/andtests/exceptvmlinux.h,include-hygiene:make check-includes,player-build:scripts/check-player-build.shin a Fedora 44 container,package-manifests:make check-package-manifests,abi:make check-abi,doc-references:make check-doc-references,doc-diagnostics:make check-doc-diagnosticsandmake check-config-commands,syzkaller-matrix,header-paths,test-build-dir,license-boundary: themake check-*target of the same name,shellcheck:shellcheck -S errorover two fixed lists of scripts and integration tests, one with-s bashand one with-s sh,yamllint:policies/,.github/,.golangci.ymland.yamllintagainst.yamllint,clang-analyzer:scan-build --status-bugsover themaketargetstest-unit(which buildsallfirst),examples,syzkaller-fuzz-loaderand thebench_sdkfile in its build directory, excludingsrc/bpf/andinclude/vmlinux.h.
Testing and Patch checks describe what each gate enforces.
BPF object
Both jobs run in a Fedora 44 container and build the object with
make bpf.
bpf-veristatLinks the object with
bpftool gen objectand runsscripts/veristat-gate.shinside a virtme-ng guest booted with the container's newest kernel andlsm=bpf. Without/dev/kvmthe guest runs under TCG.bpf-elf-inspectFails unless the object is a BPF ELF with
lsm/program sections, alicensesection, a.mapssection and a BTF that dumps as C.
C static analysis
c-static-analysis.yml runs make sparse followed by
make check-stack-frames, make coccicheck, and make smatch
against smatch built from source.
Go
Every Go job installs the newest 1.26.x toolchain. The modules declare
go 1.25.8 and no toolchain directive, so the installed toolchain
builds them; only the steps that install go-licenses, gosec and
govulncheck set GOTOOLCHAIN=auto. A go directive bump changes
every go.mod and go.work together.
src/crl is a module shared by the verifier and the attestation CA.
Both go.mod files replace it with the in-tree path, so it is never
fetched and needs no version tag.
go-static-analysis.yml:
golangci-lintFails when
go mod tidychanges ago.modorgo.suminsrc/verifier,src/attestca,sdk/server,src/crlorsrc/fleetctl. Runsgo test ./...insrc/verifier,src/attestca,src/crlandsrc/fleetctl, then golangci-lint v2.12.2 in those four modules,sdk/server,examples/demo_serverandexamples/ci-gate/gate.pkcs11-softhsmInitialises a SoftHSM token and runs
TestPKCS11SignerIssuesAIKinsrc/attestcawith-tags pkcs11. That tag is the only build that carries the PKCS#11 signer; the default build is pure Go.go-coveragescripts/check-go-coverage.shwith a Postgres service, so thepg_integrationpackages are measured as well.postgres-integrationgo test -tags pg_integration -p 1over./store/and./verify/insrc/verifieragainst a Postgres service.go-licensesgo-licenses checkin every Go module exceptsrc/crl. Allowed: MIT, BSD-3-Clause, BSD-2-Clause, Apache-2.0, ISC and MPL-2.0. The project's own packages andmodernc.org/mathutilare ignored.
Security analysis
security-analysis.yml:
codeqlC and Go databases with the
security-extendedandsecurity-and-qualitysuites and.github/codeql/codeql-config.yml. The C database is built from the same targets asclang-analyzer, the Go database bygo test ./...in the modules gosec scans.actionlint,zizmorLint the workflow files.
gosecgosec v2.27.1 at
-severity=lowinsrc/verifier,src/attestca,sdk/server,src/crl,examples/demo_serverandsrc/fleetctl, with G104, G304 and G115 excluded.trivy-depsA filesystem vulnerability scan. Every severity is uploaded to code scanning; a HIGH or CRITICAL finding with a fix available fails the job.
govulncheckgovulncheck v1.1.4 in the same modules as gosec. It fails only when the code reaches a vulnerable symbol, including one in the standard library of the toolchain the job installed.
Reproducibility and units
reproducible-builds.yml runs make reproducible-build in two copies
of the tree, one with TZ=UTC and one with TZ=Asia/Tokyo, and
compares the agent, verifier, attestation CA, lota-pcr14-lock, the four
shared libraries and the BPF object byte for byte. A missing or differing
artifact fails the job; diffoscope reports for the differences are uploaded.
Reproducible builds covers verifying a release.
systemd-validate.yml runs systemd-analyze verify on the agent's
service and socket units, against a stub /usr/bin/lota-agent, and
udevadm verify on configs/udev/99-lota-tpm.rules.
Documentation
docs.yml checks the license boundary of the documentation packages,
then runs make -C Documentation lint, html, the kernel-doc warning
test and linkcheck. docs-deploy.yml publishes the site
(Branch model and release flow).
Packages
packages.yml:
rpmsIn a Fedora 44 container:
make all, an ephemeral enforcement key fromlota-agent --gen-signing-key,make sign-bpfandmake packages.helmmake helm-lintandmake helm-template.observabilitymake observability-lint.imagesmake container-images.
Pull request automation
pr-quality.yml runs scripts/check-pr-quality.sh --pr-diff over the
pull request range (Patch checks) and adds the
AI-Assisted label when the check reports AI-assisted commits.
pr-router.yml retargets a pull request opened against main to
lota-next and comments why, unless the author is the maintainer or a
bot.
Release and fuzzing hosts
release.yml runs on a v* tag (Branch model and release flow).
notify-fuzz.yml posts the pushed commit to a notification topic, so the
host that runs the long Go fuzzing campaigns moves to the new
lota-next tip. Kernel fuzzing with syzkaller runs outside GitHub
Actions (syzkaller/README.rst).