Repository navigation
chore: release 0.3.7 - #609
Merged
Merged
Conversation
Syncs `dev` with `main` (sync-main-to-dev workflow).
The cleanup job deleted RC GHCR images/signatures and git RC tags, but skipped any tag with a GitHub Release attached. Adopters that dispatch candidates with create-release=true publish X.Y.Z-rcN draft pre-releases, so every cycle stranded a draft pre-release and its tag indefinitely. Delete RC draft pre-releases (draft && prerelease, tag matching ^X.Y.Z-rc[0-9]+$) before the tag, then let the existing no-release tag deletion remove the orphaned tag. Strictly guarded so published releases are never touched. Mirrored in the root workflow for parity. Refs: #600
## Description Closes #600. The `promote-release.yml` cleanup job pruned RC GHCR images/signatures and git RC tags, but **skipped any tag with a GitHub Release attached**. Adopters that dispatch candidates with `create-release=true` (the smoke-test repo) publish `X.Y.Z-rcN` **draft pre-releases**, so every release cycle stranded a draft pre-release **and** its tag indefinitely. ## Type of Change - [x] `fix` -- Bug fix ## Changes Made In the cleanup step of both promote-release workflows, change the per-tag decision from *"release exists → skip"* to: - If the matched release is `draft == true && prerelease == true` and the tag matches `^${VERSION}-rc[0-9]+$` → delete it via `gh release delete "$tag" --yes`, then **fall through** to the existing tag-deletion (`gh api -X DELETE .../git/refs/tags/${tag}`). - Otherwise (published / non-prerelease / non-matching) → skip, untouched. - No release → delete the tag (unchanged). Strictly guarded so a published release can never be deleted. Reuses the existing `retry` wrapper, `jq` matching, logging style, and tag-deletion call — no new step. Files: - `assets/workspace/.github/workflows/promote-release.yml` — adopter-facing SSoT (what smoke-test consumes) - `.github/workflows/promote-release.yml` — root, mirrored for parity (root's candidate path doesn't create RC drafts today) ## Changelog Entry ### Fixed - **Prune RC draft pre-releases in promote cleanup** ([#600](#600)) - Cleanup now deletes `X.Y.Z-rcN` draft pre-releases (and their now-orphaned tags); guarded to never touch published releases ## Testing - [x] Tests pass locally (pre-commit + YAML parse clean) - [x] Manual testing performed (describe below) ### Manual Testing Details The cleanup logic is shell embedded inline in workflow YAML (GitHub API calls), so it is not unit-testable without a refactor the issue does not ask for. Validated by: - YAML parses for both files; all pre-commit hooks pass. - Simulated the decision logic across five cases — RC draft prerelease → delete; published prerelease → skip; published final → skip; stray `-rcfoo` draft → skip (regex guard); no release → delete tag — all correct. End-to-end verification is the **next release run** in `vig-os/devcontainer-smoke-test` (dispatches candidates with `create-release=true`): confirm the `X.Y.Z-rcN` draft pre-release + tag are pruned and the published `X.Y.Z` release is untouched. ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [ ] I have added tests that prove my fix is effective (N/A — inline workflow shell; verified via simulation + next release run)
piscina 4.9.0 (HIGH, prototype-pollution gadget -> RCE) is bundled inside the cursor-agent CLI, installed unpinned from cursor.com/install. We do not control its bundled deps; the fix can only arrive via a future cursor-agent build. The gadget is not an attacker-reachable surface in devcontainer/CI use, so accept it in .trivyignore with a 2026-09-01 expiration, mirroring the existing gh-binary CVE-2026-42504 entry. Refs: #602
…603) ## Summary The nightly security scan ([run 27817416422](https://github.com/vig-os/devcontainer/actions/runs/27817416422)) flagged one **fixable HIGH** vulnerability in `ghcr.io/vig-os/devcontainer:latest` and opened #602: | Package | CVE | Severity | Installed | Fixed | Where | |---------|-----|----------|-----------|-------|-------| | `piscina` | CVE-2026-55388 | HIGH | 4.9.0 | 4.9.3+ | bundled in cursor-agent CLI | `piscina` (prototype-pollution gadget → RCE via inherited `options.filename`) is **bundled inside the cursor-agent CLI**, installed unpinned from `cursor.com/install` (`Containerfile`). We do not control cursor-agent's bundled dependency versions; the fix can only arrive via a future cursor-agent build, and stripping/pinning piscina would break its worker pool. The gadget is not an attacker-reachable surface in devcontainer/CI use. This mirrors the existing accepted entry **CVE-2026-42504** (Go stdlib HIGH bundled in the `gh` binary) — the documented IEC 62304 risk-acceptance path (layer 4 in `docs/CONTAINER_SECURITY.md`). ## Change - Add `CVE-2026-55388` to `.trivyignore` with risk assessment + expiration **2026-09-01**. ## Verification - `uv run check-expirations .trivyignore` → exit 0 (81 entries). - Local Trivy gate re-scan against `:latest` with the updated `.trivyignore` → exit 0; piscina finding suppressed, no remaining fixable HIGH/CRITICAL. ## Note The nightly scan reads `.trivyignore` from the default branch (`main`), so this only clears #602's nightly gate once it reaches `main` via the normal release/promote cycle. Refs: #602
PR CI Trivy becomes a blocking gate only and no longer uploads SARIF to the GitHub Security tab; the nightly scheduled scan of the published :latest image (category container-image-latest) is now the single authoritative scan. Removes the duplicate container-image category that could not reliably auto-close. Refs: #604
typstyle is installed from latest release; upstream shipped 0.15.0 (2026-06-20), so the hardcoded 0.14. assertion now fails. Update the expected minor version to unblock CI. Refs: #604
…f truth (#605) ## Description Consolidates container-image vulnerability scanning to a single source of truth and cleans up the resulting orphaned/stale code-scanning alerts. Closes #604. The **Security and quality** tab had 564 open alerts, but ~328 were stale, orphaned, or duplicated rather than genuine exposure (see #604 for the full evaluation). Root cause: two overlapping Trivy scans (PR CI `container-image` + nightly `container-image-latest`) plus a defunct `container-image-scheduled` category, where the PR-CI alerts could not reliably auto-close. ## Type of Change - [x] `ci` -- CI/CD pipeline changes ## Changes Made - **`ci.yml`**: PR CI Trivy is now a blocking **gate only** (fail on fixable HIGH/CRITICAL) plus non-blocking job-log reports. Removed the `Generate SARIF report` + `Upload SARIF to GitHub Security` steps and the now-unneeded `security-events: write` permission. Added a comment documenting the SSoT. - **`security-scan.yml`**: header comment updated to state that the nightly `:latest` scan (`container-image-latest`) is the single authoritative scan for the Security tab. - **Alert cleanup** (GitHub state, reversible — dismissed, not deleted): - 10 orphaned `container-image-scheduled` alerts (no producing workflow since 2026-03-30). - 313 `container-image` alerts (category no longer produced after this change). - 5 Scorecard `supply-chain/*` findings, each with documented rationale. - **Result:** open alerts **564 → 237**, all from the single authoritative `container-image-latest` nightly scan. ## Changelog Entry ### Security - **Consolidate container-image vulnerability scanning to a single source of truth** ([#604](#604)) - PR CI Trivy is now a blocking gate only (fail on fixable HIGH/CRITICAL) and no longer uploads SARIF to the Security tab - The nightly scheduled scan of the published `:latest` image (`container-image-latest`) is now the single authoritative scan for the GitHub Security tab, ending duplicate/stale alert categories - Dismissed orphaned `container-image-scheduled` and stale `container-image` code-scanning alerts that could no longer auto-close ## Testing - [x] `pre-commit run --files` on changed workflows — all hooks pass (yamllint, action-pin check, manifest sync) - [x] YAML parses; workflow structure validated - [x] Manual verification: after dismissals, `gh api .../code-scanning/alerts?state=open` returns only `container-image-latest` (237) ### Manual Testing Details Workflow-only change (no testable code logic added), so no unit tests apply. The PR-CI Trivy **gate** behaviour is unchanged — only the SARIF upload (Security-tab publishing) was removed. ## Checklist - [x] Self-review performed - [x] Commented the workflow change documenting the SSoT - [x] Updated `CHANGELOG.md` under `[Unreleased]` - [x] No new warnings/errors - [ ] Added tests — N/A (workflow/YAML change, non-testable)
…) (#608) ## Summary Consolidates four open Renovate update branches that could not auto-merge (they overlap on the same workflow/action files and keep going stale against each other). Each update is re-applied as one clean commit, with a single consolidated CHANGELOG entry replacing the per-PR churn — same pattern as #593 and #561. - **#607** — `actions/checkout` v6.0.3 → **v7.0.0** (digest `9c091bb…`) across all root + `assets/workspace` + `assets/smoke-test` workflows and the `test-*` composite actions - **#606** — `taiki-e/install-action` (just) digest → **ab08a3b** - **#589** — Python deps: `pytest` 9.1.1, `ruff` 0.15.18 (root); `numpy` 2.5.0, `scipy` 1.18.0 (workspace template); lockfile refreshed - **#588** — GitHub Actions minor/patch: `astral-sh/setup-uv` → **0.11.23**, `aquasecurity/trivy-action` scanner → **v0.71.2** The #588 bumps to `ci.yml`/`release.yml`/`security-scan.yml` were layered as a patch on top of the #607 checkout-v7 change so both coexist on the shared lines. ## Testing - ✅ `uv lock --check` — lockfile consistent with the new `pyproject.toml` (resolved 50 packages, no drift) - ✅ Pre-commit hooks pass (incl. SHA-pin verification, changelog template sync to `assets/workspace/.devcontainer/CHANGELOG.md`, yamllint) - ✅ No stale version strings remain (old checkout/uv/trivy/ruff/pytest pins all gone) - Image version-pin tests (`test_image.py`) use minor-level checks (`ruff` `0.15.`), so 0.15.18 still matches; trivy/checkout are CI-only (not image-installed) — left to CI as the authoritative gate. Recommend **squash-merge** into one commit. Closes #588, closes #589, closes #606, closes #607
Move Unreleased content to [0.3.7] - TBD and create fresh empty Unreleased section for continued development.
c-vigo
approved these changes
Jun 22, 2026
Set release date to 2026-06-22 and regenerate release docs. Refs: #609
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.
Release 0.3.7 - 2026-06-22
This PR prepares release 0.3.7 for merge to main.
0.3.7 - 2026-06-22
Changed
actions/checkouttov7.0.0,taiki-e/install-actiondigest toab08a3b,astral-sh/setup-uvto0.11.23, and theaquasecurity/trivy-actionscanner tov0.71.2pytest9.1.1,ruff0.15.18 (root);numpy2.5.0,scipy1.18.0 (workspace template); lockfile refreshedFixed
X.Y.Z-rcNdraft pre-releases (and their now-orphaned tags); guarded to never touch published releasesSecurity
:latestimage (container-image-latest) is now the single authoritative scan for the GitHub Security tab, ending duplicate/stale alert categoriescontainer-image-scheduledand stalecontainer-imagecode-scanning alerts that could no longer auto-close