Repository navigation
v0.3.0
[0.3.0] - Install robustness, block-mode report integrity, CI cost work
Fixed
- The installer no longer hangs without a timeout. Every release download
(SHA256SUMS,SHA256SUMS.bundle, the binary, and thelatesttag lookup) now
has a connect timeout, a total-transfer ceiling, and bounded retries on transient
failures. Previously a blackholed connection or a stalled CDN hung your job
until your job timeout with no diagnostic, and a single transient 5xx failed the
install outright. Retries deliberately exclude hard client errors, so a bad token
or a missing asset still fails on the first response instead of after four. version: latestcan now be authenticated. Passgithub-token(e.g.
${{ github.token }}) and the release lookup uses it. The unauthenticated GitHub
API allows 60 requests/hour per runner IP, shared across every Actions job on that
IP; exceeding it previously surfaced as a confusing "release asset not found".
When the lookup does fail, the error now names the likely cause and the fix.- A malformed
github-tokennow fails with the real reason. The token check
ran inside the pipeline that parses the release tag, so its error message was
swallowed and you saw a misleading "rate limit" hint instead. The token is now
checked once, before the lookup, and the install stops with a message that names
the problem. A regression test (test/action) runs the realentrypoint.sh
without root or network. - Download retries now have a total time limit. The per-attempt ceiling applied
to every retry, so a stalled binary download could take about 20 minutes before it
failed.--retry-max-timestops new retries once the ceiling has passed, which
halves the worst case. - OpenSSF Scorecard runs again.
ossf/scorecard-actionv2.4.0 pulls its image
fromgcr.io, and that pull is now refused. v2.5.0 pulls fromghcr.io.
Security
These fixes matter in block mode, where the build runs as the ordinary runner
user and Egret runs as root. In audit mode the build already runs as root, so
audit mode is not a security boundary.
-
Root no longer writes through symlinks the build planted. Only the last
component of the report directory was checked, so a symlinked parent redirected
Egret's root writes anywhere on the host. The job summary was opened with
O_CREATEand followed symlinks and hard links, so a build could point it at a
root-owned file such as/etc/ld.so.preload. On a self-hosted runner this
could lead to root code execution (traced in code, not run end to end). Paths
are now opened one component at a time, and a
symlink is followed only in a directory that root alone controls. Files are
written relative to the open directory handle. The job summary must be a regular
file with one link, owned by the invoking user, root, or the owner of its
directory, and is opened non-blocking (a FIFO there no longer hangs the job). -
A build can no longer erase or forge its own result. A build could create a
directory namedreport.json: the write failed, the error was only logged, the
violation count read as 0, andfail-on-violationspassed. A failed report write
now fails the run. The action also refuses to continue when no report exists. -
The post-run steps no longer run a binary the build could replace. SARIF
generation and GitHub publishing (with your token) ran the binary in the
runner-owned install directory. The action now copies the verified binary into a
fresh root-owned directory before the build starts, writes the report there, and
uses only those afterwards. The report is then copied to the usualreport-dir.
The directory is the first of/var/tmp,/tmp,/optand/usr/local/lib
where the copied binary actually runs, so hosts that mount temp dirsnoexec
still work, and get a clear error if none allows execution. -
Go toolchain 1.26.9 (GO-2026-6617). The release binary and CI now build with
Go 1.26.9, which fixes an HTTP/2 crash caused by a race in thenet/httpHPACK
encoder.govulncheckreported it as reachable, which failed the security
workflow onmain. -
cilium/ebpfv0.22.0 (GO-2026-6238). v0.16.0 had an integer overflow in BTF
parsing, andgovulncheckreported it as reachable. The upgrade also moves the
indirectcobra,pflag,x/mod,x/syncandx/toolsmodules forward. The
committed eBPF bindings build and pass all tests against the new version, and CI
now loads them into a real kernel on every change (see Changed). -
The wrapped build no longer inherits
EGRET_INGEST_TOKENeither. Egret passed
its own environment verbatim to your build in both audit and block mode, so a
hostile dependency could read the dashboard ingest credential straight out of
os.Environ()- and use it to forge or suppress the very findings meant to catch
it. Egret's credentials are now filtered from the child process in one place, with
tests.EGRET_INGEST_URLand everything else is untouched. -
github-tokenis validated before use. It is passed to curl through a config
file on stdin (to keep it out of/proc/<pid>/cmdline), and curl's config format
is an option grammar rather than a header string - so a token containing a quote
and a newline could inject arbitrary curl directives, including one that redirects
the request to another host and sends the bearer header along with it. Real GitHub
tokens cannot express that, but the input is free text on a published action, so
the value is now rejected unless it matches[A-Za-z0-9_.-]+. -
Release downloads are pinned to HTTPS and ignore
~/.curlrc.--proto/
--proto-redirstop a redirect from downgrading thelatestlookup to plaintext
(the one leg covered by neither checksum nor signature, so a downgrade could roll
a consumer back to an older, still-validly-signed release).-qstops a root
build from writing a~/.curlrccontaininginsecureand turning every later
Egret fetch into an unverified-TLS download - which matters most on persistent
self-hosted runners, where the poisoned file survives into other jobs. -
No ambient
GITHUB_TOKENfallback. The release lookup uses only a credential
explicitly passed to the action, matching how the publish path already behaved. -
Documentation now states plainly that stripping the token from the wrapped
command is hardening, not isolation: your build runs as root and can read the
action's environment via/proc. Previous wording implied the risk was closed. -
The wrapped build no longer inherits
github-token. Egret runs your command
undersudo -E, which handed the entire step environment - including an App
installation token withchecks/issues/pull-requestswrite - to the
third-party toolchain and dependency code Egret exists to watch. The token is now
stripped from the child environment; the publish calls that need it set it
explicitly per invocation. The token is also sent only toapi.github.com, via
curl's stdin config rather than argv, so it is not readable from/proc. -
zizmoris pinned in the security workflow. An unpinned installer there was
both an unreviewed supply-chain input and a source of findings that changed
between runs with no repo change. Renovate now tracks it, andgovulncheck's
pinned version, via custom managers. -
govulncheckis still built from source on every run rather than cached. The
Actions cache is writable by any run on the same ref, and a restored scanner
binary that reports "no vulnerabilities" is a worse outcome than a slow one -
the same reasoning behindcache: falseon the release trust path.
Changed
-
report.jsonis always written, whateverreport.formatlists. It is the
verdict the action counts violations from. A policy withformat: [markdown]
used to produce no JSON, so the action read zero violations. -
The GitHub job summary is best effort. If its path is unsafe or unusable, Egret
prints a warning and skips it instead of failing the run. The summary is a view,
not the verdict. -
CI now loads the eBPF probes from the commit under test. The
ebpfjob runs
the freshly built binary undersudoin audit mode, monitors acurl, and fails
unless the network probe records the connection. Before, CI only proved that the
code compiled, and the action self-test used the published release, so a change
that broke probe loading would first fail for users after a release. -
CI no longer runs the same work twice per commit:
govulncheckran as both a
step inci.ymland a dedicated job insecurity.yml, and the pure packages'
tests ran in both CI jobs.govulncheckis now only thesecurity.ymljob, and
theebpfjob tests only the packages that need the generated eBPF bindings
(computed as the complement ofPURE_PKGS, so a new package is never silently
dropped from CI). -
OpenSSF Scorecard no longer runs on pull requests. It grades the repository, not
a diff, andpublish_resultscannot publish from a PR. -
The
enforcer-regateworkflow'spushtrigger had path filters but no branch
filter, so it fired on release tags, on the floatingv0tag, and on every branch
that already had a pull request running it. It now runs on the pull request and on
main. Its container install also droppedclang,llvmandlibbpf-dev: the
job builds from committed bindings and the runtime only needsnft, so nothing
invoked them. -
The action self-test gained a
concurrencygroup (the only workflow without one,
so rapid pushes to a PR piled up parallel runs) and skips docs-only changes. -
Job timeouts were sized against observed runtimes instead of 10-40x them, and the
network-facing steps gained their own step timeouts, so a hang surfaces in minutes
rather than at the end of a 20-minute job.
Tests
- New hermetic tests run the real
entrypoint.sh runwith stand-insudoand
egretbinaries, and plant symlinks, hard links and directories for the report
writer. The attack tests fail on the previous code.