Repository navigation
fix(workflow): guard sync-issues cleanup step against missing retry shim - #1286
Merged
Merged
Conversation
c-vigo
added a commit
that referenced
this pull request
Jul 28, 2026
…on blocks (#1288) ## Summary Advances the pinned `nixpkgs` rev from nixos-26.05 @ `34268251` (2026-06-22) to @ `8623c4c2` (2026-07-26) and drops the `.vulnixignore` exception blocks whose fixes have propagated to the channel. Deliberately kept out of the 1.4.2 patch train (mass rebuild); the jq block's expiry (2026-08-03) was the nearest deadline. ## Before/after vulnix diff (per docs/CONTAINER_SECURITY.md §4) Scanned `.#devkitImageEnv` closure at both pins against the nvd-mirror. **Unique CVEs: 112 → 56. No new HIGH/CRITICAL (CVSS ≥ 7.0) findings introduced.** | Package | Before | After | Register action | |---|---|---|---| | openssl | 3.6.2 | **3.6.3** | block dropped (10 CVEs) | | curl | 8.20.0 | **8.21.0** | block dropped (17 CVEs) | | openssh | 10.3p1 | **10.4p1** | block dropped (CVE-2026-60002) | | jq | 1.8.1 | **1.8.2** | CVE-2026-49839 entry dropped (line-granular; shared `Expiration: 2026-08-03` directive and libssh2/socat survivors preserved) | | unbound | 1.25.1 | 1.25.1 | kept — fix not propagated | | gawk | 5.4.0 | 5.4.0 | kept — fix not propagated | | podman | 5.8.2 | 5.8.2 | kept — fix not propagated | | fzf | 0.72.0 | 0.72.0 | kept — fix not propagated | | libssh2 | 1.11.1 | 1.11.1 | kept — fix not propagated | - Kept blocks' re-verification notes refreshed to 2026-07-28 with the new pin context. - New surface: jq 1.8.2 shows three unrelated advisories (CVE-2026-33948 5.3, CVE-2026-39979 6.5, CVE-2026-44777 5.5) — all below the 7.0 gate threshold, awareness-only, **no new exceptions added**. - gzip/ldns/libxml2 also cleared from the report incidentally; their (harmless, non-gating) register entries were left untouched per minimal diff. ## Verification - `nix flake update nixpkgs` — flake.lock diff touches only the nixpkgs node - `uv run check-expirations .trivyignore .vulnixignore` — 37 exceptions validated, exit 0 - `uv run vulnix-gate vulnix-after.json --register .vulnixignore` — "No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 33 exception(s) applied", exit 0 (independently re-run at review) - `nix build .#devkitImage` — image builds at the new pin - `prek run --all-files` — all hooks green - TDD n/a (lockfile + exception-register change) Includes a merge of current dev (changelog-overlap resolution with #1286/#1287). Closes #1273
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
if: always()"Delete old cache" cleanup step insync-issues.ymlcalls theretrywrapper, which only exists after toolchain setup (BASH_ENV shim fromsetup-devkit-toolchainin the template /setup-envin devkit's own copy). When the job fails before setup — e.g. the exo-pet/vault "Generate a token" failures of 2026-07-26 — the step degraded toretry: command not found, and theCACHE_ID=$(retry … | head -1)pipeline masked the error viahead's exit 0, silently skipping the anti-collision deletion.A one-shot fallback shim (
command -v retry >/dev/null 2>&1 || retry() { …; }) is now prepended to the step'srun:block in both copies (scaffold template + devkit's own workflow — scope approved in review). Healthy runs are unchanged (the real shim wins); early-failure runs degrade to a single unretried attempt instead of a masked error.if: always()andcontinue-on-error: truestay as designed.Changes
assets/workspace/.github/workflows/sync-issues.yml— fallback shim in the cleanup step (scaffold template).github/workflows/sync-issues.yml— same fix in devkit's own (independently maintained) copytests/bats/init-workspace.bats— new test: rendered scaffold's cleanup step carries the fallback guard (TDD: committed RED first)CHANGELOG.md+assets/workspace/.devcontainer/CHANGELOG.md—### Fixedentry (mirror kept in sync by the sync-manifest hook)Verification
34541bb9), fix turns it green (1eb61c65)bats tests/bats/init-workspace.bats: 244/244 okassets/workspace/.github/workflows/: no findingsprek run --all-files: all hooks greenCloses #1278