Repository navigation
chore: sync dev with main - #1165
Merged
Merged
Conversation
Set release date to 2026-07-17 and regenerate release docs. Refs: #1164
# [Release 1.3.1](https://github.com/vig-os/devkit/releases/tag/1.3.1) - 2026-07-17 This PR prepares release 1.3.1 for merge to main. ## [1.3.1](https://github.com/vig-os/devkit/releases/tag/1.3.1) - 2026-07-17 ### Added - **Document the first-release manual promote runbook** ([#1151](#1151)) - `promote-release.yml` is dispatched via `workflow_dispatch`, which GitHub only registers for workflows present on the **default branch** — and the release-PR merge that puts it there is what promote itself performs, so a consumer's *first* promote 404s (chicken-and-egg). `docs/MIGRATION.md` gains a "First release after migrating to devkit" section with the end-to-end manual promote sequence (undraft the Release → merge the release PR → RC cleanup), a note that the manual path cannot be resumed by the workflow once the draft/PR preconditions are consumed, and a pointer to the floating-tag handling. Every subsequent release promotes normally. - **Document the first-release floating-tag ruleset bypass** ([#1152](#1152)) - The imported Tag ruleset bypasses only the Release App (Integration) — right for steady state, where `promote-release.yml` moves `<prefix>X` / `<prefix>X.Y` with the app token — but on a first release the promote workflow is not dispatchable and no human (not even an admin) can move the floating tags (`422 Cannot update this protected ref`), so the release publishes with `<prefix>X` stale and `<prefix>X.Y` missing, silently breaking the `uses: owner/repo@<prefix>X` pin. `docs/MIGRATION.md` gains a "First-release floating tags" subsection: temporarily add a `RepositoryRole: admin` bypass to the Tag ruleset, move the tags to the peeled release commit (the same `move_tag` semantics as `promote-release.yml`), then revert the ruleset. ### Changed - **Renovate dependency update** ([#1161](#1161)) - Update `actions/attest` from `v4.1.1` to `v4.2.0` - Update `vig-os/commit-action` from `v0.3.0` to `v0.3.1` - Update `vig-os/sync-issues-action` from `v0.2.2` to `v0.4.0` - **Renovate: update `github/codeql-action` from `99df26d` to `7188fc3`** ([#1160](#1160)) - **Release extension seam gains a documented token ceiling** ([#1144](#1144)) - The `extension` caller job in the scaffolded `release.yml` now grants the `release-extension.yml` seam a ceiling of `contents: read`, `packages: write`, `id-token: write`, `attestations: write`. A called reusable workflow can only *downgrade* the caller's `GITHUB_TOKEN`, never elevate it, so with no caller grant the seam was capped read-only and write-scoped extensions (`actions/attest-build-provenance`, GHCR publish) were silently denied. This is a ceiling, not a grant: the shipped default no-op stays read-only and a consumer opts a job in by declaring the scopes it needs, up to the ceiling. Scopes beyond it (e.g. `contents: write`) still belong in a consumer-owned tag-push workflow. Documented in `docs/DOWNSTREAM_RELEASE.md`. ### Fixed - **Commit only the non-ignored `dist/` on release finalize** ([#1159](#1159)) - The finalize step passed the whole `dist` directory to `commit-action` (`FILE_PATHS: CHANGELOG.md,dist`). `commit-action` walks a directory path on disk and force-adds **every** file it finds — it never consults `.gitignore` — so the gitignored tsc/ncc byproducts (`dist/src/**`, `*.tsbuildinfo`) were re-committed on every final release, re-tracking them on `main`, on `dev` (via `sync-main-to-dev`), and in the tag tree, and making the sanctioned `git rm --cached` cleanup impossible to persist (it re-bit as a release-PR `Dist Check` failure after an ncc/tsc-affecting dep bump). The build step now computes the tracked-plus-untracked-but-not-ignored set with `git ls-files -co --exclude-standard -- dist` (i.e. `git add`/`.gitignore` semantics) and the finalize commit ships only those explicit files, so the real bundle (`dist/index.js`, `dist/licenses.txt`) is committed without the gitignored emit. - **Fail loud with remediation when a first-time floating-tag create is denied** ([#1157](#1157)) - `promote-release.yml` force-**updates** an existing `<prefix>X` / `<prefix>X.Y` via `PATCH`, but the first release of a **new** floating level must **create** the ref (`POST /git/refs`). When the Tag ruleset restricts tag creation and the Release App is not a bypass actor for its `creation` rule, the create is denied as the opaque `Reference does not exist` (HTTP 422); `retry` then hammered the permanent denial and the job exited 1 with no actionable signal — even though publish + merge had already succeeded, leaving the advertised `@<prefix>X.Y` pin silently missing. The move step now guards the create and emits a `::error::` annotation naming the tag, target commit, ruleset root cause, and the one-off remediation (`docs/MIGRATION.md#first-release-floating-tags`, extended to cover a new level introduced in steady state) instead of a bare `gh` error. - **Skip trunk-reachable history in release-PR commit validation** ([#1149](#1149)) - On a freshly migrated consumer's first release PR (`release/X.Y.Z` → `main`), the `Commit Messages` job validated `merge-base(base, head)..head`, which spans the entire pre-migration history since the last release — commits merged before the commit gate existed. A single non-compliant historical commit permanently blocked the first release train (immutable shared history, neither a merge nor bot-authored, so no exemption applied). `validate-commit-range` gains a repeatable `--exclude-reachable REF` option, and the scaffolded `ci.yml` now passes `--exclude-reachable origin/dev` on non-dev PRs: commits already reachable from the trunk branch were gated (or grandfathered) on their way into trunk and are no longer re-litigated. The exclusion is a no-op on a dev PR (whose base *is* dev), so it only tightens release/main PR ranges. - **Pin the release finalize sync-issues dispatch to the release branch** ([#1150](#1150)) - The `finalize` job in `release-core.yml` dispatched `sync-issues.yml` with no `--ref`, so GitHub resolved the workflow on the **default branch** — the pre-devkit workflow until the first devkit release merges — and both `gh run list` polls omitted `--branch`, so a concurrent scheduled run could be mistaken for the dispatched one. On a consumer's first final release this timed out at finalize and triggered the automatic rollback. The dispatch now passes `--ref "release/$VERSION"`, both polls filter `--branch "release/$VERSION"`, and the wait ceiling is raised from 120 s to 600 s (the first release-branch sync has no cutoff cache and self-heals up to 14 days of history). - **Render CodeQL push `paths:` filter per detected language** ([#1142](#1142)) - The scaffolded `codeql.yml` hardcoded the push-to-main trigger's `paths:` filter to `**.py`, so on a Node consumer a push touching only TS/JS never fired the post-merge CodeQL scan (only the unfiltered PR trigger caught it). `init-workspace.sh` now renders the filter from the same language detection as the matrix: python → `**.py`; node → `**.ts`/`**.js`/`**.mjs`/`**.cjs`; rust adds no source globs; the `.github/workflows/**` catch-all is always kept. Because `codeql.yml` is a managed file, consumer hand-fixes are no longer reverted on every devkit upgrade. - **Never migrate scaffold-committed or template gitignore lines** ([#1145](#1145)) - The [#1111](#1111) gitignore migration copied entries that shadow scaffold-COMMITTED files: the old Python-template `.gitignore` shipped `.envrc`, and migrating that entry into `.gitignore.project` silently kept the scaffolded `.envrc` ([#640](#640)) untracked, breaking direnv onboarding on every clone (observed live on the sync-issues-action 1.3.0 deploy, vig-os/sync-issues-action#106). Scaffold-committed file names (`.envrc`, `.gitignore.project`, `flake.nix`, `flake.lock`, `justfile`, `justfile.project`, `.vig-os`) now never migrate. - It also treated stale devkit language-template lines as consumer-authored: the managed set was built from the DETECTED languages' fragments only, so a repo that switched language templates (e.g. old Python-flavored managed `.gitignore`, now a Node repo) got ~90 lines of `__pycache__/`-style junk dumped into its consumer-owned file. The managed set is now built from ALL `gitignore.d/` fragments — any line found in any devkit fragment is template material, never migrated.
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.
Syncs
devwithmain(sync-main-to-dev workflow).