advisories: the scan runs in the image, and the three quinn advisories it found are fixed (macula-rust#2) #4
Loading…
Reference in a new issue
No description provided.
Delete branch "hygiea/2-advisories-in-the-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs macula-rust#2. This is the fix for dry run 3203 (release-core.yml on master
39135a78, task 8246 "rust in ." red, nothing published, publish never expanded).What the red actually was
Not a crate and not a broken parse: the scan never ran.
cargo auditexits 1 both for vulnerabilities and for a failed advisory-database fetch, and the advisories stand-in accepts 1 as "findings", then reads the empty stdout as a parse error — with the stderr that named the cause dropped. Reproduced locally with the workflow's own pinned binary in the macula-rust checkout:couldn't fetch advisory database: I/O operation failed: Permission deniedcouldn't fetch advisory database: git operation failedThe last two are what 3203 looked like from the wrapper's side. The stand-in's blindness is filed separately upstream (macula-io/macula-ci-images), and the three carriers re-copy it after that lands; this PR does not touch the stand-in file.
What this PR does
ci.yml'saudit,release-core.yml,release-ffi.yml):container: ghcr.io/macula-io/macula-ci-otp:20261031-2106@sha256:f2532c6a…andcontainer-options: '--user 1000:1000'— the public ghcr mirror, so no credentials ride along; HOME is/tmpinside it, writable; the job never writes a root-owned workspace (the stand-in refuses uid 0 first).quinn-proto0.11.18 → 0.11.19 andquinn-udp0.5.15 → 0.5.16, both inside the rangeCargo.tomlalready allows (quinn = "0.11"), so the change isCargo.lockonly.No waiver row is involved and nothing is being waived.
Proof
The stand-in's own script (its pinned cargo-audit 0.22.2, sha256 verified) run inside that image by digest,
--user 1000:1000,HOME=/tmp, against this tree:39135a787:3 advisory finding(s), 0 waived, 3 left, rc 1 — the gate working;0 advisory finding(s), 0 waived, 0 left, rc 0, stderr empty.cargo check --locked --workspaceon the bumped lock is the compile proof and is reported in the HANDOFF.After it lands
The lander re-dispatches
release-core.ymlonce on master (the Supervisor's word: no new GO, Actions are already on). Its publish job then proves what the port was built for: theBearertoken expression from723a076, against the forge's Cargo registry.Done-when, checked against the landed tree (master
56312fa2d0f23112fa645aaa73e83d90d40f6bab, fast-forwarded from06f09502; PR 9):ci.yml'saudit,release-core.ymlandrelease-ffi.ymleach passcontainer:+container-options: '--user 1000:1000'. The image is the forge's public macula-pub copy of the same digest every other job here runs on —git.macula.io/macula-pub/macula-ci-otp@sha256:3e202cf7…— not the ghcr.io mirror the issue body above names (Jupiter's review round,56312fa): the forge pulls it anonymously, no registry credentials ride along, and nothing is fetched from ghcr.io.ci.ymlrun 6469, the only run for56312fa, is success:test,coverage floor (lines),Lint tests/teststation,Dependency advisories,rust in . (container),docs,rustfmt,clippyall green. The three skips (key files/hard links, uniffi bindings,rust in .) are the same three skipped on run 6468, so they are the workflows' own shape, not this tip.Start image=git.macula.io/macula-pub/macula-ci-otp@sha256:3e202cf7…,running as uid 1000 in /tmp, thendependency advisories: rust in /workspace/macula-io/macula-rust/., by cargo audit→0 advisory finding(s), 0 waived, 0 left→Job succeeded.Cargo.lockcarries quinn-proto 0.11.19 and quinn-udp 0.5.16, insideCargo.toml's existingquinn = "0.11"; no waiver row, none waived.Still owed after this close, and tracked on #2: the lander's one dispatch of
release-core.ymlon master, whose publish job proves theBearertoken expression against the forge's Cargo registry.Pull request closed