Skip to content

Update to project-template v0.112.2 #25

Done

Description

@github-actions

This project is on project-template v0.61.2. The newest version is v0.112.2, 86 versions later.

Plan the update with /plan-issue and this issue's number, which plans it as /plan-template-update v0.112.2 does, or run .\.template\Update-Project.ps1 on a branch of its own.

The template-update workflow keeps this issue current every week: it retitles it and rewrites this text when a newer version comes out, and closes it once the project is on the newest version.

Changes since v0.61.2

[0.112.2] - 2026-11-21

Changed

  • This repository's own .github/workflows/code-review.yml takes the template's: it pins NCode Review v1.5.0 by its full commit SHA in both jobs, under ADR-0009's commented exception until 2026-11-24, and its review job passes approve: true and approver-private-key, so once an organization owner has installed the NCode Review Approver here, stored its key in the code-review environment and run tools/Set-RepositoryBaseline.ps1, the Protect main ruleset requires the approver's approval, of the last push; until then NCode Review approves as its own app, which meets no required approval. AGENTS.md and CONTRIBUTING.md say so (#482, ADR-0036).
  • The .github/workflows/code-review.yml a GitHub project gets with NCode Review wraps its header paragraph and the comment above approver-private-key within 120 columns, as this repository's own copy does, so the two files are identical again; no word or setting changes, and an existing project's copy, which updates leave alone, keeps its lines (#486).
  • No change for projects made from the template. tests/Test-Template.ps1 fails when this repository's own .github/workflows/code-review.yml and the template's differ, so a change to one copy, such as the rewrap in #484, can't land without the other (#486).

[0.112.1] - 2026-11-21

Fixed

  • .template/Update-Project.ps1 names the files that reference Nerdbank.GitVersioning themselves, and says to delete that reference, only when the project's build/ProjectTemplate.props references it too, as a .NET library's does once version.json exists. A project that isn't a library (nuget_package false) and versions itself through a version.json and a Nerdbank.GitVersioning reference of its own no longer gets a note that would remove its only reference, and Adopt-Project.ps1 no longer drops such a repository's reference (#477).
  • docs/best-practices-badge.md's test-policy row, and every row of docs/best-practices-criteria.md that cited CONTRIBUTING.md by a heading or an item number, say which statement of CONTRIBUTING.md they cite instead. A project whose own CONTRIBUTING.md is laid out differently can check that its file makes each one. The badge page is the project's own, so an update shows its new row as a change to it (#478).

[0.112.0] - 2026-11-21

Added

  • tools/Get-AdoptionChecklist.ps1 -Path <clone> audits an adopted repository in one command: it runs every row of docs/adopt.md's Checklist through the clone, gh or glab, and the -WhatIf runs of Set-RepositoryBaseline.ps1, Dismiss-ScorecardAlerts.ps1 and Set-GitLabBaseline.ps1, prints each row as done, not done, unreadable, naming the page that shows a row no command reads, or does not apply, changes nothing, and exits 1 when a row is not done (#471).

Changed

  • docs/adopt.md's Checklist says how to run it with tools/Get-AdoptionChecklist.ps1, and what the checker reads for a row no script checked before, instead of naming the checker as a planned follow-up (#471).
  • A GitHub project's .template/Get-TemplateUpdate.ps1 reads a tag as a template version only when the whole tag is an optional v and up to four dot-separated numbers in ASCII digits, and expands a gh: or gl: template address or moves the old polewskm one only when the whole answer matches, the patterns tools/Get-AdoptionChecklist.ps1 shares: a tag with other Unicode digits no longer stops the weekly update notice with a conversion error, and one that ends in a line break is no version (#471).

[0.111.4] - 2026-11-21

Changed

  • docs/adopt.md's NCode Review steps, 0.3 and section 5 with 5.1, link NCode Review's own runbook, Set Up NCode Review, End to End, at its once-per-organization, once-per-repository and troubleshooting sections, instead of NCodeGroup/code-review's README sections "Using it" and "Opting a repository in", so NCode Review's setup has one procedure (#472).
  • USAGE.md's NCode Review paragraph sends an existing project to .\.template\Update-Project.ps1 -Data @{ code_review = $true }, docs/adopt.md section 5 and NCode Review's runbook, and names the NCode Review Approver's installation and Enable-CodeReview.ps1's -ApproverPrivateKeyPath, which it left out, so a maintainer who follows it sets up the approval too (#472).
  • ADR-0028 records that whether a GitHub project's releases are immutable depends on the project, not the template: a project whose releases get files or attestations after they are published keeps mutable releases, as a .NET library does, whose release-provenance.yml attaches its packages, their provenance and an SBOM, and every other project gets immutable ones from tools/Set-RepositoryBaseline.ps1. tag-release.yml keeps publishing each release and publish.yml keeps attaching its files afterwards, rather than drafting the release until its files are attached. The record adds that Scorecard v5.7.0's releasesAreImmutable probe scores an immutable release that has assets as high as one with a provenance file, while a release without assets isn't counted, and ADR-0139 says a library's releases stay mutable (#393, ADR-0028).
  • docs/adopt.md's 3.3 Immutable Releases says a .NET library's releases stay mutable by that decision, and that a project whose own workflow runs on a release event only to publish elsewhere can turn them on with gh api -X PUT repos/<owner>/<name>/immutable-releases (#393).
  • ADR-0020's Signed-Releases rows say that Scorecard counts only the releases with assets among the five newest: a project that isn't a .NET library publishes its releases without assets, so the check is left out of its score, and one whose own workflow attaches files scores 10 with immutable releases or a *.intoto.jsonl provenance file and 8 with a signature alone; a .NET library's releases score 10 with their provenance and stay mutable (#393, ADR-0020).
  • /best-practices' Signed-Releases action says that from Scorecard v5.7.0 an immutable release scores 10 and needs no signature or provenance asset, and that Scorecard counts only the releases with assets among the five newest; where releases are mutable though no workflow attaches files after publishing, it names tools/Set-RepositoryBaseline.ps1 -WhatIf, and it looks for *.intoto.jsonl or signature assets only on mutable releases, such as a .NET library's (#393).
  • ADR-0020 follows the nuget_publisher answer: in a .NET library whose own workflow publishes its packages, and which so gets no publish.yml, release-provenance.yml or raise-baseline.yml, its Token-Permissions, Signed-Releases and Packaging rows name that workflow instead of those three and its Signed-Releases row promises no provenance, and it cites neither ADR-0139 nor ADR-0151 (#393, ADR-0020).
  • The scorecard.yml a GitHub project gets pins ossf/scorecard-action to the full commit SHA of v2.6.0, with the tag in a comment (it pinned v2.5.0), so it runs Scorecard v5.7.0, whose Signed-Releases check scores an immutable release that has assets 10, as it scores one with a *.intoto.jsonl provenance file. v2.6.0 is pinned before it is three days old by ADR-0009's commented exception, which goes once 2026-11-22 has passed (#393, #481).

[0.111.3] - 2026-11-21

Fixed

  • The template's code-review.yml pins NCode Review v1.5.0, released on 2026-11-21, by ADR-0009's commented exception until its three-day cooldown ends on 2026-11-24, and the NCode Review note .template/Update-Project.ps1 prints says a project adopts v1.5.0 from that day, or sooner only by such an exception (#464, ADR-0009).
  • .template/Update-Project.ps1 and Adopt-Project.ps1 name a shallow actions/checkout of a job that builds with Nerdbank.GitVersioning only when a build step runs in its folder, by the step's working-directory: or the job's or workflow's defaults:, and give a named checkout's path:, so a checkout such as path: current beside a build with working-directory: rebuild is no longer flagged (#465, ADR-0138).

[0.111.2] - 2026-11-21

Added

  • docs/adopt.md, a runbook that takes a maintainer from nothing to a fully adopted repository, new or existing, on GitHub or GitLab: the organization's one-time setup, protecting the default branch and tags, releases, a .NET library's nuget.org publishing, NCode Review, the other one-time settings and staying current, each step saying who does it, where, how to check it and what usually goes wrong, and a checklist that audits an adopted repository; the README's table of contents links it (#468).

Fixed

  • AGENTS.md's draft key, CONTRIBUTING.md's Make a Change item 6, GOVERNANCE.md's Automation row, the message after a project is made and /best-practices' Branch-Protection row say that where NCode Review's approver is set up, the NCode Review Approver's approval meets the ruleset's required approval, of the last push, with one writer too, as ADR-0036 decided in v0.111.0; they still said that GitHub counts no approval from NCode Review. AGENTS.md, CONTRIBUTING.md and GOVERNANCE.md are the project's, so the update shows their changes for the project to take (#466, ADR-0036).

  • tools/Dismiss-ScorecardAlerts.ps1's Branch-Protection comment says that with one writer the ruleset can require only the one approval, of the last push, that NCode Review's approver gives where it is set up, and none elsewhere, citing ADR-0036; it said the ruleset requires no approval, which is false where the approver is set up.

[0.111.1] - 2026-11-21

Fixed

  • publish.yml grants the baseline job contents: write and issues: write, the permissions raise-baseline.yml declares, so a library's publishing run starts. A called workflow that asks for more than its caller grants fails the whole run at startup, and in v0.111.0 the grant still named the pull request and Actions permissions, which stopped NCodeGroup/Buffers v5.5.0 from publishing. The template's tests compare each called workflow's grant with what it declares (#460).

[0.111.0] - 2026-11-21

Added

  • Where NCode Review's approver app is set up (code-review.yml passes approver-private-key and the repository's code-review environment holds NCODE_REVIEW_APPROVER_PRIVATE_KEY), tools/Set-RepositoryBaseline.ps1 requires one approval, of the last push, with one writer too, since GitHub counts an approval from a reviewer that can write; the template's code-review.yml pins NCode Review v1.5.0 and passes the approver's key, and .template/Update-Project.ps1 says when a project's code-review.yml pins NCode Review before v1.5.0 or passes approve: true without approver-private-key (#460, ADR-0036).

Changed

  • Every repository's workflow token is read-only and GitHub Actions can't approve pull requests, also where raise-baseline.yml is, and tools/Set-RepositoryBaseline.ps1 -OrganizationPolicy sets the organization's defaults the same way (#461, ADR-0036).
  • raise-baseline.yml pushes baseline-<version> and opens an issue whose link opens the pull request, which starts CI and NCode Review's review, instead of opening a draft pull request and starting CI itself (#460, ADR-0036).

[0.110.0] - 2026-11-20

Added

  • tools/Dismiss-ScorecardAlerts.ps1 -Repo <owner>/<name> dismisses, in a repository with one writer, the open OpenSSF Scorecard alerts of Branch-Protection, CII-Best-Practices and Contributors as won't fix with a standard comment, after listing every open Scorecard alert, and leaves the others open; -WhatIf shows it, and with two writers or more it dismisses nothing. (#456, ADR-0035)
  • For a public repository with one writer, tools/Set-RepositoryBaseline.ps1 ends with a notice naming tools/Dismiss-ScorecardAlerts.ps1. (#456, ADR-0035)

Changed

  • /best-practices counts the people with write access, reports a Scorecard check whose alert is dismissed as accepted, with its reason, never recommends a required approval or approval of the last push to a project with one writer, and names tools/Dismiss-ScorecardAlerts.ps1 for the checks one person can't clear. (#456, #455, ADR-0035)
  • ADR-0020's Scorecard table gives the score one writer reaches on Branch-Protection, CII-Best-Practices and Contributors, and points to ADR-0035 for dismissing their alerts. (#456, ADR-0035)
  • code-review.yml, code-review-auto-merge.yml, AGENTS.md, CONTRIBUTING.md, GOVERNANCE.md, the update's NCode Review note and the message after a project is made say that GitHub counts no approval from NCode Review toward a required approval, and that the ruleset requires one, from someone with write access other than the author, only once a second person has write access. (#455, ADR-0034)
  • ADR-0034 records that it amends ADR-0005, ADR-0006, ADR-0019 and ADR-0031, and, where a project has it, record 0150, whose text says NCode Review's approval meets a required approval or that the baseline loosens its own ruleset in one way alone; their status lines name it on GitHub. (#455, ADR-0034)

Fixed

  • tools/Set-RepositoryBaseline.ps1 requires no approval and no approval of the last push where one person has write access, also where code-review.yml passes approve: true, and turns both off in an earlier "Protect main" that requires an approval, saying so: GitHub counts no approval from the author or from NCode Review, whose app has no write access, so a sole maintainer could merge nothing. It keeps dismissing stale reviews, and names a collaborators list it can't read, adding no approval and keeping those a ruleset has. For a ruleset of the owner's that requires an approval, and when GitHub refuses the change, it prints the command that requires neither. (#455, ADR-0034)

[0.109.0] - 2026-11-20

Added

  • .template/Test-ReproducibleBuild.ps1 packs a library twice and compares the packages entry by entry, ignoring zip timestamps, and a .NET nuget_package on GitHub runs it as the reproducible-build job of ci.yml, which tag-release.yml also runs before it tags a release; on GitLab it runs by hand. (#454, ADR-0154)
  • A GitLab library's .gitlab-ci.yml has a raise-baseline job: when a stable version tag is pushed, after the project's own publish job when it has one, it runs build/Update-Baseline.ps1, pushes baseline-<version> and opens a draft merge request. It needs a project access token in the protected, masked variable BASELINE_TOKEN, with the v* tags protected so that tag pipelines can read it, and is skipped without the variable. (#389, ADR-0150)
  • tools/Set-GitLabBaseline.ps1 -BaselineToken protects the v* tags and creates the project access token and the protected, masked BASELINE_TOKEN variable that a GitLab library's raise-baseline job needs. (#389)
  • tools/Set-RepositoryBaseline.ps1 reports the organization's two-factor requirement as required, not required or not available, and never sets it. (#453)

Changed

  • The Best Practices criteria map says what shows assertions are enabled while the tests run and when Unmet is honest, makes copyright_per_file, license_per_file and dynamic_analysis Check rows with their commands, has the static_analysis_fixed and regression_tests_added50 checks name each won't-fix alert and each fix with its test, says autofill's two-factor Met is no evidence, keeps roles_responsibilities at ? until the Who column names people, says what to do without a good first issue, adds library guidance for input_validation, internationalization and hardening, and gives hardened_site its justification and command. (#453)
  • The registration prompt lists the SUGGESTED criteria still ?, waits for the form's radios before reading it, compares ANSWERS with the Security tab and releases before saving, reads the map with get_page_text, and ends with the commands that record the project number and add the badge; /best-practices compares its answers with the closed code scanning alerts, the fixes and the releases the same way. (#453)
  • code-review.yml no longer carries the sentence about the NCode Review v1.4.0 cooldown exception. (#392)

Fixed

  • build/ProjectTemplate.props sets Copyright without the year of the build machine's clock, so a rebuild of a release's tag in a later year produces the same assemblies and packages. (#454, ADR-0154)

[0.108.0] - 2026-11-20

Added

  • /best-practices reads a GitHub project's OpenSSF Scorecard result and, for each check under 10, names the action that raises it and who takes it: property tests for Fuzzing, the two ways to clear old unsigned release assets for Signed-Releases, a ruleset that lacks the approvals code-review.yml expects for Branch-Protection, and the registration for CII-Best-Practices. It finds an existing registration at bestpractices.dev/projects.json?url=, so a project registered before best_practices_project was recorded gets the update prompt and is never registered twice, and the registration prompt looks a project up there first. It fetches gitleaks, checksum-verified and past the dependency cooldown, when it isn't installed, and ends with an ordered list of next steps. (#451, ADR-0153)

Changed

  • /best-practices answers for the tip of the default branch, the commit Scorecard and bestpractices.dev see, in a temporary worktree when the checkout is elsewhere, and reports evidence that only unmerged commits hold instead of dropping it. (#451, ADR-0153)
  • ADR-0020's Fuzzing row says the template adds no property tests and what to write, and its Signed-Releases rows name the 14-day backfill limit and the rule never to attest registry packages. (#451, ADR-0020)

Fixed

  • .template/Test-FileHeaders.ps1 skips the five build/ scripts the template owns, dod.ps1, Update-PublicApi.ps1, Get-TestRuntimes.ps1, Install-Dotnet.ps1 and Update-Baseline.ps1, so a .NET project's file header check passes without a header in a file template updates replace. (#449, ADR-0027)

[0.107.0] - 2026-11-20

Added

  • /run-issues-all-in #42 #43, for Claude Code, Copilot Chat and Copilot CLI, runs /run-issues with its answers given and its caps lifted, and takes no switches. Every issue the request names, or every ready issue a filter finds, goes into one plan and one draft pull request. It asks nothing. It fixes every follow-up and every NCode Review finding that holds in that pull request, out of scope included, and protected paths too when the request names the issues by number rather than a filter, and lists each protected path it changes in the pull request description. It asks NCode Review for a review after every push, and sets no limit on reviews or replies, stopping a loop only when two reviews in a row add fix steps while the commits between them changed nothing. It ends once the pull request is clean and the merge is recommended: you merge, then run /finish-plan. /run-issues is unchanged. (ADR-0033)

[0.106.1] - 2026-11-19

Fixed

  • build/Update-Baseline.ps1 removes the baseline suppressions from the CompatibilitySuppressions.xml beside each project whose baseline it raises to a new major version, the entries marked <IsBaselineSuppression>true</IsBaselineSuppression> and the PKV006 and PKV007 entries for a dropped target framework, keeps the others, and deletes the file when none is left, so the pull request raise-baseline.yml opens passes package validation, which rejects a suppression that matches nothing, without a manual fix; its description names the files. (#447, ADR-0150)

[0.106.0] - 2026-11-19

Added

  • Once version.json exists, .template/Update-Project.ps1 and Adopt-Project.ps1 name each job of the project's own workflows, other than publish.yml, that builds, packs, tests or pushes packages with an actions/checkout step without fetch-depth: 0, on which Nerdbank.GitVersioning fails the build, or with a -p:Version argument, which it ignores. (#443, ADR-0138)
  • With NCode Review, .template/Update-Project.ps1 says what code-review.yml and AGENTS.md still lack for its approval, also when the project is already up to date: a pin before v1.4.0, no approve: true or no draft: yes, and to run tools/Set-RepositoryBaseline.ps1 again afterwards. (#438, ADR-0022)

Changed

  • A .NET library whose own workflow pushes its NuGet packages, which already got no publish.yml, gets no release-provenance.yml or raise-baseline.yml either, since only publish.yml calls them, and an update deletes the ones an earlier update added. SECURITY.md, GOVERNANCE.md, docs/architecture.md, docs/assurance-case.md, docs/best-practices-badge.md, docs/api-compatibility.md and docs/best-practices-criteria.md name that workflow instead of describing publish.yml, trusted publishing, the nuget environment and provenance. The new nuget_publisher answer, which the update and the adoption work out from the workflows that run nuget push, records it. (#444, ADR-0151)
  • SECURITY.md says how to verify a release tag's gitsign signature only when AGENTS.md's Landing section tags releases (release: tag or tag+release), and the update shows its change that way: the new release_policy answer, never recorded, which the update and the adoption read from that line, writes the line in a new project's AGENTS.md. docs/best-practices-criteria.md's version_tags_signed row names the same condition. (#444, ADR-0028)

[0.105.0] - 2026-11-19

Added

  • /plan-docs and /plan-refactor give a plan that changes how pages present their text, not what they say, a Done-when for each step that proves its pages keep every word of the plan's base commit, with component tags compared as sorted lists; /review-plan-diff builds a documentation site whose build command AGENTS.md names and looks at the changed pages at the layout check's widths, or names them for you to look at when the session has no browser tool. (#442)

Changed

  • A plan gets a Release: line only when it changes something a release ships: the product's code, a file its package carries, such as the readme nuget.org shows, or its build output. A plan that changes only documentation-site pages, CI, decision records, tests or repository docs gets none: /ship-plan lands it with no tag and no release, .template/Get-PlanState.ps1 sends it to /finish-plan once it has landed, tag-release.yml tags and publishes nothing for it once the release before it is tagged and published, and its changelog entries wait under ## [Unreleased] for the next release. (#439, ADR-0032)
  • A command that reaches a sibling repository finds it from the folder that holds the main checkout, Split-Path -Parent (Split-Path -Parent (git rev-parse --path-format=absolute --git-common-dir)), never through .., which from a plan's worktree is .claude/worktrees/: the template's rules say so, and planning commands write Done-when commands that way. (#441)

Fixed

  • A Copilot session passes no relative path to a .NET method, such as [IO.File]::WriteAllText, which resolves it against the process's folder, the main checkout, and not the plan's worktree that Set-Location moved to: the Copilot plan-folder rules, /finish-plan, /run-issues and /address-feedback in Copilot, and the template's rules say so, and a plan whose steps run a script repeats the rule under Context for the executor. (#440)

[0.104.0] - 2026-11-18

Added

  • A .NET library whose docs/site/site.config.json, the NCodeGroup/docs toolchain's config, names a documentation site in site.url gets that site as its package's project page on nuget.org, unless it sets PackageProjectUrl itself; a library without one still gets its repository. (#434, ADR-0152)

Changed

  • The plan format names every writer of a plan's Completes: line: /ship-plan, /run-issues after it pushes fix steps, and a push made without /ship-plan, never a planner or an executor. (#433)

Fixed

  • .template/Update-Project.ps1 no longer lists a file under "Local edits discarded", "Restored" or "Refreshed" when the update leaves it as the project had it, such as a local edit the new version also makes or a deleted file it also deletes; before, it said such an edit was discarded and should move to a project file. (#432)

[0.103.1] - 2026-11-17

Fixed

  • With integrate: direct, /ship-plan looks for the open follow-up issues a plan's work completes before it pushes to the default branch, as it does before it opens a pull request, and once the commits land it comments on and closes each issue on the plan's Completes: line, which no pull request closes there; before, such an issue stayed open. The template's rules, the plan format and USAGE.md say so, and the rules also say to comment on and close those issues after a push to the default branch made without /ship-plan. (#430)

[0.103.0] - 2026-11-17

Added

  • /ship-plan adds a Closes line to a plan's pull request description for each open follow-up issue the plan's work completes. Before it opens the pull request, and each time it pushes to an open one, such as after a renumber or merge step, it lists the open issues labelled with the Landing section's follow-up-label that were created since the plan's branch left the default branch, judges each against the branch's diff from the default branch as a review would, and records each one the work completes on a new Completes: line of PLAN.md, which /run-issues keeps when it rewrites the description after a review round. An issue the work only partly completes stays open: once the plan has landed, it gets an Autopilot: comment naming what the plan did and what remains, and its body is rewritten to describe only what remains. (#428)
  • /run-feedback runs the same check after each push and adds the Closes lines to the pull request's description, the one edit to the description it makes; an issue the pull request only partly completes goes on a Partly completes line of the description, so a restarted run still finds it, and gets the comment and the rewritten body once the pull request merges. (#428)

Changed

  • The template's rules say that a push made without /ship-plan first finds the follow-up issues its branch completes the same way, puts them on the plan's Completes: line, and drafts the pull request description with a Closes line for each. (#428)

Fixed

  • A follow-up issue filed while another plan was still open, such as one /ship-plan filed from a plan that had just landed, no longer stays open after that other plan's own work completes it and its pull request merges: the pull request now closes it. (#428)

[0.102.2] - 2026-11-17

Fixed

  • build/Update-Baseline.ps1 replaces the baseline entry an earlier run left under ## [Unreleased] instead of adding a second one, so a baseline pull request that merges after the next release leaves [Unreleased] naming only the baseline PackageValidationBaselineVersion holds; an entry in a release section stays as it is. (#426)

[0.102.1] - 2026-11-17

Added

  • The template's ADR-0030 records that the repository baseline adds the code-scanning rule only where CodeQL's default setup analyzes a language, amending ADR-0005, and a new project's docs/assurance-case.md says static analysis is enforced there. (ADR-0030)
  • The template's ADR-0031 records that the repository baseline turns off approval of the last push in its own "Protect main" ruleset where no approval is required, amending ADR-0022, which had it print the command and write nothing, and its sentence that the script never loosens a ruleset: this setting of its own ruleset is the one exception. (ADR-0031)

Fixed

  • tools/Set-RepositoryBaseline.ps1 adds the code-scanning rule only where CodeQL's default setup is configured and analyzes a language, which its summary names. GitHub can report a setup as configured with no language, as it did for NCodeGroup/docs and NCodeGroup/brand once their organization's security configuration turned it on: CodeQL ran on no pull request, and the rule blocked every one with every check green. The script leaves the rule out there, says why, and switches no query suite, since the switch sends query_suite alone and sets up no language; a later run with -RequireChecks adds the rule once the repository's settings give CodeQL a language. A new project that New-Project.ps1 -CreateRemote creates where an organization's security configuration turns default setup on can get no code-scanning rule that way, and needs that later run. (ADR-0030)
  • Where a "Protect main" ruleset already has a code-scanning rule that requires CodeQL and the default setup is configured but analyzes no language, tools/Set-RepositoryBaseline.ps1 warns that every pull request stays blocked and names the fix: set up CodeQL's languages in the repository's settings, or remove the rule, which the script never removes. It prints that warning, or its query-suite notice, also for a "Protect main" beside a ruleset of the owner's. (ADR-0030)
  • tools/Set-RepositoryBaseline.ps1 turns off approval of the last push in a "Protect main" ruleset that has it on with no required approval, and says so, also with -WhatIf; it never turns it on without one. GitHub then waits for an approval from someone other than the pusher and never lets an author approve their own pull request, so with one maintainer the setting is never met: on 2026-11-16 NCodeGroup/docs, whose ruleset had it on with zero approvals, kept a pull request blocked, with every check green, NCode Review approving, every conversation resolved and auto-merge on, until its owner unticked "Require approval of the most recent reviewable push". A run, with -RequireChecks too, had kept the setting, and a plain run only printed the command that turns it off. A ruleset that requires approvals keeps the setting and its count, and a ruleset of the owner's still gets the printed command and is written to nothing. On a plain run, where GitHub refuses the write that turns it off in "Protect main", the run reports it as not available and prints the same command; with -RequireChecks, which writes the whole ruleset, a refused write fails the repository like any other. A project with the setting on and zero approvals gets it turned off the next time it runs the baseline; -All -WhatIf lists them first. (ADR-0031)

[0.102.0] - 2026-11-16

Changed

  • The Node.js section of the template's rules says that a plan's worktree lies inside the main checkout, so a tool such as Vite can resolve the main checkout's tsconfig.json and the packages it names from the main checkout's node_modules, and to run the install in the main checkout when a build in a worktree fails to find such a package. (#415)

Fixed

  • A Node.js project's build and tests no longer fail in a plan's worktree, such as with Tsconfig not found astro/tsconfigs/strict, when a tool such as Vite reaches the main checkout's tsconfig.json, whose extends names a package the main checkout has no node_modules for: each planning and analysis command's worktree setup, which /run-issues and /address-feedback also follow, runs the project's install in the main checkout too when it has a package.json and no node_modules, and the plan says so under Context for the executor. (#415)

[0.101.1] - 2026-11-16

Fixed

  • .template\Update-Project.ps1 and Adopt-Project.ps1 name a build script of the project's own as running dotnet csharpier check only when a command in it runs the check, such as dotnet csharpier check ., or csharpier check . at the start of a statement, with csharpier in lower case. A script whose comment-based help, comment or string only mentions the check, such as a synopsis saying build/dod.ps1 runs the CSharpier check, is no longer named. (#414, ADR-0148)
  • /plan-template-update counts a project's build script as repeating a check a template script runs only when a command in it runs that check, not when its comments, help or strings name it. (#414)

[0.101.0] - 2026-11-16

Added

  • tools/Set-RepositoryBaseline.ps1 -SkipImmutableReleases leaves a repository's releases mutable, for a project whose releases get files after they are published in a way the script doesn't detect. (#411, ADR-0028)
  • tools/Set-RepositoryBaseline.ps1 prints a notice with the gh api -X DELETE repos/OWNER/REPO/immutable-releases command where a repository's releases are already immutable and a workflow on its default branch runs on a release event or uploads release assets, whose next release would fail; it never turns them off itself. (#411, ADR-0028)
  • .template/Update-Project.ps1 says to delete, or leave out of the template's change, SECURITY.md's paragraph that says releases are immutable when a workflow in .github/workflows runs on a release event or uploads release assets, also when the project is already up to date. (#411, ADR-0028)
  • Adopt-Project.ps1 prints the same note when the SECURITY.md an adoption leaves says releases are immutable and a workflow in .github/workflows runs on a release event or uploads release assets. (#411, ADR-0028)

Fixed

  • tools/Set-RepositoryBaseline.ps1 no longer turns on immutable releases in a repository where a workflow on the default branch runs on a release event or uploads release assets, such as a project's own publish.yml that attaches files to a published release, which an immutable release refuses: it read only release-provenance.yml. Its line names those workflows, or one it can't read. (#411, ADR-0028)

[0.100.0] - 2026-11-16

Added

  • .template\Update-Project.ps1 names each job of ci.yml, or its top-level permissions:, that asks for more than contents: read: tag-release.yml calls ci.yml with only contents: read, and GitHub fails that run as it starts when a job asks for more, whatever its if: says, so no release is tagged or published. Move such a job, such as a Codecov upload with id-token: write, into a workflow of its own. (#413, ADR-0026)
  • Adopt-Project.ps1 prints the update's notes on a ci.yml the repository keeps, word for word: that it has no workflow_call trigger, and that it asks for more than contents: read. (#413, ADR-0026)

Changed

  • ci.yml's comment on its workflow_call trigger and ADR-0026 say that tag-release.yml grants it only contents: read, so a job that needs more goes in a workflow of its own. (#413, ADR-0026)

[0.99.2] - 2026-11-16

Fixed

  • GOVERNANCE.md and docs/architecture.md no longer say a project starts with release: none, which was wrong for an existing project that already releases when an update adds them: they say releases are tagged when AGENTS.md's Landing section sets release: tag, and published too with tag+release. Both files are project-owned, so a project that already has them deletes the closing clause that names release: none from GOVERNANCE.md's Releases section and docs/architecture.md's Build and Release section itself. (#412)

[0.99.1] - 2026-11-16

Fixed

  • With file_headers, .template/Test-FileHeaders.ps1 checks Astro components, stylesheets and hand-written declaration files, which it skipped: an .astro file holds the two lines as // comments inside its frontmatter, so they never reach the built page, and -Fix adds them right after the opening --- line, or in a --- block of their own when the file has none; a .css, .scss or .less file holds them as /* */ comments; and every tracked .d.ts file is checked, since generated ones sit in git-ignored folders. Files under a vendor/ folder, other authors' code, are skipped as node_modules/ is. (#416, ADR-0027)
  • With coverage_gate, the Coverage check of docs/best-practices-criteria.md no longer says CI doesn't gate on coverage beside the sentence that names the gate. (#416)

[0.99.0] - 2026-11-16

Added

  • A /best-practices command, in Claude Code, Copilot Chat and Copilot CLI, verifies a project's OpenSSF Best Practices answers in its repository: it runs the checks of docs/best-practices-criteria.md (coverage, a gitleaks scan of the whole history, cryptography and TLS, outbound addresses, the build, regression tests), resolves each evidence link, compares the answers saved at bestpractices.dev once the project is registered, and writes the prompt that registers the project or updates its answers to best-practices-prompt.txt, which .gitignore ignores. (#401)
  • A Node.js project's CI and Landing gate run Biome, <package_manager> run lint, with the rules in a project-owned biome.json, under the new node_lint answer; CONTRIBUTING.md says how to pin Biome and add its lint and format scripts. (#402, ADR-0201)
  • Under the new coverage_gate answer, CI fails below 90% of the statements or 80% of the branches, the gold thresholds, through .template/Test-Coverage.ps1: build/dod.ps1 collects .NET's coverage in a Coverage stage, the default Python and PowerShell test commands write coverage.xml, and a Node.js project's test script writes lcov.info. (#403, ADR-0026)
  • Under the new file_headers answer, for every stack but .NET, CI fails on a source file without the copyright line and the SPDX-License-Identifier line, through .template/Test-FileHeaders.ps1, whose -Fix adds them. (#405, ADR-0027)
  • On GitLab, a Node.js or Python project's CI audits its dependencies on every pipeline, and tools/Set-GitLabBaseline.ps1 schedules a weekly pipeline, "Weekly dependency audit", so the checks also run when nothing is pushed. (#407, ADR-0029)
  • .template\Update-Project.ps1 prints the badge line to add when best_practices_project is set and README.md doesn't show the badge, also when the project is already up to date. (#408, ADR-0025)
  • In a public GitHub repository, tag-release.yml signs each release tag with gitsign, and .template/Publish-Release.ps1 -Sign tags with git tag -s; SECURITY.md's new Verify a Release section says how to check a tag with gitsign verify-tag. (#409, ADR-0028)

Changed

  • node_lint, coverage_gate and file_headers are on for a new project and off for an updated or adopted one, as csharp_format is: turn one on with .\.template\Update-Project.ps1 -Data @{ <answer> = $true }. (#402, #403, #405)
  • tag-release.yml runs ci.yml again on a release's commit, through ci.yml's new workflow_call trigger, and tags the release only once it passes; .template\Update-Project.ps1 warns when ci.yml can't be called. (#406, ADR-0026)
  • tools/Set-RepositoryBaseline.ps1 turns on immutable releases, so GitHub signs an attestation of each release, except in a repository with release-provenance.yml; a new GitHub project's SECURITY.md says how to check one with gh release verify. (#404, ADR-0028)
  • docs/best-practices-criteria.md answers coding_standards_enforced, warnings, the coverage criteria, dynamic_analysis, copyright_per_file, license_per_file, signed_releases, version_tags_signed and, on GitLab, dependency_monitoring from the checks a project has turned on. (#402, #403, #404, #405, #406, #407, #409)

[0.98.0] - 2026-11-16

Added

  • Every project gets docs/best-practices-criteria.md, which the template owns and updates: all 145 OpenSSF Best Practices criteria of the passing, silver and gold levels, each with its requirement at that level, whether N/A and a URL apply, and the answer to expect, Met, Check, N/A, Gap, Person or Unmet, with its evidence for the project's stack and host; what stops a level, the checks to run before answering and, on GitHub, the prompts that register the project and update its answers in Claude in Chrome. (#398, ADR-0025)
  • The best_practices_project answer, never asked, records the project's number at bestpractices.dev once it is registered: .\.template\Update-Project.ps1 -Data @{ best_practices_project = '<number>' }. docs/best-practices-criteria.md then shows the badge for README.md and the address of the saved answers, and a project created or adopted with the answer gets the badge in README.md and docs/best-practices-badge.md. (#398, ADR-0025)

Changed

  • A new project's SECURITY.md promises an acknowledgement within 14 days, its CONTRIBUTING.md has a Review Requirements section and names the good first issue label, its docs/assurance-case.md has a Security Reviews section, and its docs/best-practices-badge.md links the criteria page, says where the project stands and lists the gold criteria that need a person. These files are project-owned: an update shows the template's changes to them, to take what fits. (#398, ADR-0025)
  • ADR-0023 and, on GitHub, ADR-0020 name the criteria page and what the gold level needs from people. (#398, ADR-0025)
  • On GitHub, a new .NET, Node.js or Python project's CONTRIBUTING.md says that a reformat or a large move brings back dismissed CodeQL alerts, which need dismissing again, and to keep a dismissal's reason that the code doesn't show in a comment beside it. (#398)

[0.97.0] - 2026-11-15

Added

  • .template\Update-Project.ps1, also when the project is already up to date, and Adopt-Project.ps1 warn when the repository has no LICENSE or COPYING file: for a blank license answer they print the command that adds Apache-2.0, .\.template\Update-Project.ps1 -Data @{ license = 'Apache-2.0' }, in which another SPDX expression can take its place, and for any other answer they say to add that license's text as LICENSE.txt. (#397, ADR-0024)

Changed

  • The license question defaults to Apache-2.0, NCode Group's license, so a new project gets LICENSE.txt and COPYRIGHT.txt; answer another SPDX expression, such as MIT, or blank for none. A project keeps the answer it has, and one from before the question, or adopted without a license the adoption can read, gets a blank answer, never the default. (#397, ADR-0024)

Fixed

  • ADR-0020's License row no longer says every GitHub project ships a license file: it names LICENSE.txt for an Apache-2.0 or MIT license, and otherwise the command that adds one. (#397, ADR-0020)

[0.96.0] - 2026-11-15

Added

  • Every project gets GOVERNANCE.md, CODE_OF_CONDUCT.md (Contributor Covenant 2.1), ROADMAP.md, docs/architecture.md, docs/assurance-case.md and docs/best-practices-badge.md, the documents the OpenSSF Best Practices silver level asks for, mapped to its criteria. They are project-owned, an update adds missing ones, and prompts say what to write. The conduct_contact answer says where conduct reports go; blank, GitHub's private report form or a confidential GitLab issue. (#383, ADR-0023)
  • release-provenance.yml runs by hand to attest an earlier release while its Publish packages run's artifact is kept (14 days): gh workflow run release-provenance.yml -f tag=<tag> -f run-id=<run id>. (#381, ADR-0151)

Changed

  • Breaking: A .NET library's release-provenance.yml and raise-baseline.yml run as jobs publish.yml calls, not on workflow_run, which never fired for the run tag-release.yml starts. Add the template's provenance and baseline jobs to your publish.yml; the update says so until you do. Scorecard averages the last five releases with assets: delete older unsigned assets, or wait five releases. (#381, ADR-0151)
  • With NCode Review, code-review.yml passes approve: true (v1.4.0), so a clean review approves; new projects open drafts (draft: yes); and tools/Set-RepositoryBaseline.ps1 then requires one approval, dismisses stale approvals and requires approval of the last push. To adopt it, pin v1.4.0, add approve: true, set - draft: yes and rerun the baseline script. A bot's pull request then waits for a maintainer's approval; after a push by hand, comment /review. (#382, ADR-0022)
  • ADR-0020 follows Scorecard's source: Code-Review counts any non-author approval, bots included; Branch-Protection scores no tier after tier 2 until tier 2, one required approval, is met; Signed-Releases averages the last five releases with assets; CII-Best-Practices scores silver 7, gold 10. (#386, ADR-0020)

Fixed

  • tools/Set-RepositoryBaseline.ps1 no longer requires approval of the last push without a required approval, which blocked every merge with one maintainer; for a ruleset that does, it prints the command that turns it off, for the maintainer, since it never loosens a ruleset. (#385)

The 56 older section(s) don't fit in an issue; read them in CHANGELOG.md.

Activity

  1. added
    template-update
    on Nov 9, 2026
  2. changed the title [-]Update to project-template v0.75.6[/-] [+]Update to project-template v0.97.0[/+] on Nov 16, 2026
  3. changed the title [-]Update to project-template v0.97.0[/-] [+]Update to project-template v0.112.2[/+] on Nov 23, 2026
  4. polewskm commented on Nov 28, 2026

    @polewskm
    Contributor

    Part of NCodeGroup/project-template#576.

    Record the contribution policy in this update: curated.

    What

    This repository's contribution policy is curated, as [ADR-0052](https://github.com/NCodeGroup/project-template/blob/main/template/docs/decisions/project-template/0052-each-repository-states-its-contribution-policy-and-the-baseline-enforces-it.md) defines it. Issues and discussion are welcome, and code is by invitation while the design settles. A library's answer may move to open once it is ready, and that is a person's choice.

    How

    In this repository's next template update, to project-template v0.141.0 or newer, record the answer:

    .\.template\Update-Project.ps1 -Data @{ contributions = 'curated' }

    Or run /plan-template-update, which plans the update and its follow-on edits, with the same -Data. Then tools/Set-RepositoryBaseline.ps1 in project-template mirrors the answer into the contribution-policy property and enforces it.

    Until then

    The baseline enforces a repository with no answer as maintainers.

    Done when

    .copier-answers.yml records contributions: curated, and CONTRIBUTING.md and README.md state it.


    Generated by Claude Code

  5. polewskm commented on Nov 29, 2026

    @polewskm
    Contributor

    Plan snapshot. The working copy is PLAN.md in the plan's checkout; this comment is not updated as steps run.

    Plan: Update to project-template v0.145.1 recording the curated policy (14 steps)

    Plan: Update to project-template v0.145.1 recording the curated policy

    Issue: #25

    Goal

    Update the repository from project-template v0.61.2 to v0.145.1 and record its contribution policy, curated (the template's ADR-0052): .copier-answers.yml records contributions: curated, and CONTRIBUTING.md and README.md state it. The update's follow-on work lands in the same pull request: the stale NuGet logistics the update names, Nerdbank.GitVersioning in main.yml, the template's changes to the project-owned files, a package readme of the package's own, and the README's .NET library layout.

    Context for the executor

    • Build: dotnet build
    • Test: dotnet test
    • Conventions: UTF-8 without BOM, LF or the file's existing line endings; Markdown prose is wrapped as the file already wraps it. Never edit a template-owned file other than the ones a step names.
    • Gotchas: A script or command never passes a relative path to a .NET method, such as [IO.File]::ReadAllText, [IO.File]::WriteAllText or [IO.Directory]::GetFiles: .NET resolves it against the process's folder, which Set-Location doesn't move and which in a Copilot session is the main checkout, not the plan's worktree. Use Get-Content -LiteralPath, Set-Content -LiteralPath or Get-ChildItem, or make the path absolute first with Join-Path (Get-Location) <path>. build/ProjectTemplate.props fails the build with PT0155 on the net9.0 target until step 2 sets ProjectTemplateLtsCheck. dotnet pack fails with NU5026 until step 3 removes GeneratePackageOnBuild.
    • The template's rendered copies of the project-owned files, with this project's answers, are in the scratch render C:\Users\Marcin\.copilot\session-state\6566c0c4-4187-4100-b4db-5e2f6533ba84\files\scratch\render (copier copy --vcs-ref v0.145.1 with the answers of step 1).

    Decisions

    • Answers: contributions = 'curated' (issue Update to project-template v0.112.2 #25), repository = 'NCodeGroup/Extensions.DataProtection', main_project = 'NCode.Extensions.DataProtection/NCode.Extensions.DataProtection.csproj' (the update's default names a src/ folder this repository doesn't have) and project_description, one sentence from the repository's description, so the README header gets its description, CI, target framework, license and Scorecard badges. docs_url stays blank: the project has no documentation site.
    • release: none stays in AGENTS.md, so the plan has no Release: line and its changelog entries go under ## [Unreleased] (ADR-0032); moving to tag+release and to publish.yml with trusted publishing is Decisions left after the project-template v0.61.2 and NCode Review v1.1.2 upgrade #24's Publishing decision, which this plan leaves to the maintainer. The update leaves publish.yml, release-provenance.yml and raise-baseline.yml out because main.yml publishes (nuget_publisher).
    • AGENTS.md takes the template's Landing text and keys (pre-release: tracked, draft: yes, board: none, planning: none) and the Outside Contributions section; draft: yes because the NCode Review Approver's key is now stored in the code-review environment, so marking a draft ready is the maintainer's review.
    • net8.0 (end of support 2026-11-10) and net9.0 (STS) stay targeted: dropping a target is a breaking change that needs the maintainer's decision, filed as Drop the end-of-support net8.0 and STS net9.0 targets and the LTS check exceptions #32. Until then Directory.Build.props sets ProjectTemplateLtsCheck to false and ci.yml runs Test-DotnetSupport.ps1 -WarnOnly, as its comment invites.
    • version.json keeps the update's assemblyVersion of 1.0.1 with precision: build, so the 1.x assemblies keep 1.0.1.0, the published 1.0.1's, which settles Decisions left after the project-template v0.61.2 and NCode Review v1.1.2 upgrade #24's AssemblyVersion item; the changelog's [Unreleased] entry that promised 1.0.0.0 is rewritten to match.
    • code-review.yml takes the template's v0.145.1 file: NCode Review v1.7.0 with approve: true, the approver key and review-forks: true, under ADR-0009's commented cooldown exception until 2026-11-30T21:24Z; Drop NCode Review v1.7.0's cooldown exception #31 removes the exception.
    • The package gets its own readme, NCode.Extensions.DataProtection/README.md, which build/ProjectTemplate.props packs in place of the root README, so nuget.org never shows the template's HTML header.
    • The stale NuGet logistics the update names are fixed here: project.props, which nothing imports, moves into the project file; GeneratePackageOnBuild and the settings build/ProjectTemplate.props already makes are deleted; the .sln becomes .slnx; six files lose their byte order mark.
    • SECURITY.md takes the template's changes but keeps its own description of main.yml's publish job, and says a package's version comes from version.json; it gets no "Verify a Release" section, which needs release: tag+release.
    • docs/architecture.md and docs/assurance-case.md, which the update adds as placeholders, are written for this library.
    • When a step escalates because the update differs from the trial, the orchestrating session files the gap in NCodeGroup/project-template; the executor never calls gh.

    Out of scope

    Steps

    [ ] 1. Update from project-template v0.145.1

    • Files: .copier-answers.yml, .template-version, .template/, .claude/, .github/, .githooks/, .editorconfig, .gitignore, build/, docs/decisions/project-template/, docs/api-compatibility.md, docs/architecture.md, docs/assurance-case.md, docs/best-practices-badge.md, docs/best-practices-criteria.md, docs/replies.md, CLAUDE.md, CODE_OF_CONDUCT.md, GOVERNANCE.md, ROADMAP.md, NCodeGroup.png, version.json, Directory.Packages.props, .githooks/commit-msg (deleted), .template/Test-CommitAttribution.ps1 (deleted)
    • Change: clone https://github.com/NCodeGroup/project-template.git into a scratch folder outside the repository and run & .\.template\Update-Project.ps1 -Ref v0.145.1 -NoCommit -TemplateClone <scratch> -Data @{ contributions = 'curated'; repository = 'NCodeGroup/Extensions.DataProtection'; main_project = 'NCode.Extensions.DataProtection/NCode.Extensions.DataProtection.csproj'; project_description = 'Extensions and utilities for ASP.NET Core Data Protection, including a type-safe IDataProtector factory and high-performance span-based protection operations.' }. The trial printed Template v0.61.2 -> v0.145.1: with 1 conflict, Directory.Packages.props: keep the before updating side (this project's package versions) and drop the template's empty <ItemGroup></ItemGroup>, then git add Directory.Packages.props. Delete the scratch folder. Commit note: stage with git add -A -- . ':!PLAN.md' limited to the update's files; .githooks/commit-msg and .template/Test-CommitAttribution.ps1 are already staged as deleted.
    • Done when: if ((Select-String -LiteralPath .copier-answers.yml -Pattern '^_commit: v0.145.1$' -Quiet) -and (Select-String -LiteralPath .copier-answers.yml -Pattern '^contributions: curated$' -Quiet) -and -not (git diff --name-only --diff-filter=U) -and -not (git grep -lE '^(<<<<<<<|>>>>>>>) ')) { exit 0 } else { exit 1 }

    [ ] 2. Keep the net8.0 and net9.0 targets until #32 decides, and set the package validation baseline

    • Files: Directory.Build.props (edit), .github/workflows/ci.yml (edit)
    • Change: in Directory.Build.props replace the DocumentationFile line, which build/ProjectTemplate.props already sets, with a commented <ProjectTemplateLtsCheck>false</ProjectTemplateLtsCheck> naming ADR-0155 and Drop the end-of-support net8.0 and STS net9.0 targets and the LTS check exceptions #32, and a commented <PackageValidationBaselineVersion>1.0.1</PackageValidationBaselineVersion> naming ADR-0147 and build/Update-Baseline.ps1. In ci.yml run ./build/Test-DotnetSupport.ps1 -WarnOnly and extend the step's comment: net8.0 reached its end of support on 2026-11-10 and net9.0 is an STS release, and issue Drop the end-of-support net8.0 and STS net9.0 targets and the LTS check exceptions #32 decides their removal, a breaking change.
    • Done when: dotnet build; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }

    [ ] 3. Fix the stale NuGet project settings

    • Files: NCode.Extensions.DataProtection/NCode.Extensions.DataProtection.csproj (edit), NCode.Extensions.DataProtection/project.props (delete), NCode.Extensions.DataProtection.Tests/NCode.Extensions.DataProtection.Tests.csproj (edit)
    • Change: move Description and PackageTags from project.props into the library's project file, in place of its second PropertyGroup, and delete project.props; delete GeneratePackageOnBuild, ImplicitUsings, Nullable, LangVersion, PublishRepositoryUrl, EmbedUntrackedSources, IncludeSymbols, SymbolPackageFormat and the empty ItemGroup; delete ImplicitUsings and Nullable from the test project. Pattern: NCodeGroup/Base64Url's NCode.Base64Url/NCode.Base64Url.csproj.
    • Done when: dotnet pack NCode.Extensions.DataProtection -c Release -o artifacts/plan-pack; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }

    [ ] 4. Move the solution to .slnx

    • Files: NCode.Extensions.DataProtection.sln (delete), NCode.Extensions.DataProtection.slnx (new), NCode.Extensions.DataProtection.sln.DotSettings → NCode.Extensions.DataProtection.slnx.DotSettings (rename)
    • Change: dotnet sln NCode.Extensions.DataProtection.sln migrate, delete the .sln, git mv the DotSettings file.
    • Done when: if ((Test-Path NCode.Extensions.DataProtection.slnx) -and -not (Test-Path NCode.Extensions.DataProtection.sln)) { dotnet build; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 } } else { exit 1 }

    [ ] 5. Drop the byte order marks

    • Files: LICENSE.txt, NCode.Extensions.DataProtection/Properties/AssemblyInfo.cs, NCode.Extensions.DataProtection/DataProtectorExtensions.cs, NCode.Extensions.DataProtection/DataProtectorFactory.cs, NCode.Extensions.DataProtection/Registration.cs, NCode.Extensions.DataProtection.Tests/DataProtectorExtensionsTests.cs
    • Change: remove the first three bytes (EF BB BF) of each file; nothing else changes.
    • Done when: $bad = 'LICENSE.txt','NCode.Extensions.DataProtection/Properties/AssemblyInfo.cs','NCode.Extensions.DataProtection/DataProtectorExtensions.cs','NCode.Extensions.DataProtection/DataProtectorFactory.cs','NCode.Extensions.DataProtection/Registration.cs','NCode.Extensions.DataProtection.Tests/DataProtectorExtensionsTests.cs' | Where-Object { $b = Get-Content -LiteralPath $_ -AsByteStream -TotalCount 3; $b[0] -eq 0xEF -and $b[1] -eq 0xBB }; if ($bad) { exit 1 } else { exit 0 }

    [ ] 6. Build main.yml with Nerdbank.GitVersioning

    • Files: .github/workflows/main.yml (edit)
    • Change: add fetch-depth: 0, with the comment # Nerdbank.GitVersioning computes the version from the history and fails on a shallow clone., to the actions/checkout step of the build, test and publish jobs; delete the Extract version from tag step; build with -p:PublicRelease=${PUBLIC_RELEASE} and PUBLIC_RELEASE: ${{ github.event_name == 'release' }} in place of /p:Version="${BUILD_VERSION}", with a comment naming ADR-0138. Pattern: NCodeGroup/Base64Url's .github/workflows/main.yml.
    • Done when: if ((Select-String -LiteralPath .github/workflows/main.yml -Pattern 'BUILD_VERSION|get-version-action' -Quiet) -or ((Select-String -LiteralPath .github/workflows/main.yml -Pattern 'fetch-depth: 0').Count -ne 3)) { exit 1 } else { exit 0 }

    [ ] 7. Take the template's code-review.yml with NCode Review v1.7.0's cooldown exception

    • Files: .github/workflows/code-review.yml (edit)
    • Change: replace the file with the render's .github/workflows/code-review.yml, then add after the line ending 0041-ncode-review-reviews-and-approves-dependabots-pull-requests.md say why. the three lines: # v1.7.0 was released on 2026-11-27T21:24Z, under the three days ADR-0009 waits: it is pinned by that record's / # commented exception, because review-forks needs it, and this sentence goes once 2026-11-30T21:24Z has passed / # (issue #31 removes it).
    • Done when: if ((Select-String -LiteralPath .github/workflows/code-review.yml -Pattern 'c88c378ad166b57027bf504526e09585e727c33c # v1.7.0').Count -eq 2 -and (Select-String -LiteralPath .github/workflows/code-review.yml -Pattern 'issue #31 removes it' -Quiet) -and (Select-String -LiteralPath .github/workflows/code-review.yml -Pattern 'approve: true' -Quiet)) { exit 0 } else { exit 1 }

    [ ] 8. Take the template's changes to AGENTS.md

    • Files: AGENTS.md (edit)
    • Change: add the ## Outside Contributions section after the opening paragraphs, as the trial printed it; replace the Landing paragraph with the template's; add - pre-release: tracked after changelog, set - draft: yes, add - board: none and - planning: none before prelude; keep release: none and the Conventions section.
    • Done when: if ((Select-String -LiteralPath AGENTS.md -Pattern '^## Outside Contributions$' -Quiet) -and (Select-String -LiteralPath AGENTS.md -Pattern 'it is curated' -Quiet) -and (Select-String -LiteralPath AGENTS.md -Pattern '^- planning: none$' -Quiet) -and (Select-String -LiteralPath AGENTS.md -Pattern '^- release: none$' -Quiet)) { exit 0 } else { exit 1 }

    [ ] 9. Take the template's CONTRIBUTING.md and SECURITY.md changes

    • Files: CONTRIBUTING.md (edit), SECURITY.md (edit)
    • Change: CONTRIBUTING.md becomes the render's copy, which states the curated policy in its first paragraph. In SECURITY.md delete the maintainer reminder comment about private vulnerability reporting (it is on), take within 14 days, and end the main.yml sentence with each package's version comes from version.json, which the release's tag matches.
    • Done when: if ((Select-String -LiteralPath CONTRIBUTING.md -Pattern 'code is by invitation while the design settles' -Quiet) -and -not (Select-String -LiteralPath SECURITY.md -Pattern 'Maintainers: the button' -Quiet) -and (Select-String -LiteralPath SECURITY.md -Pattern 'within 14 days' -Quiet)) { exit 0 } else { exit 1 }

    [ ] 10. Take the template's docs changes and describe the components and the assurance case

    • Files: docs/README.md, docs/decisions/README.md, docs/designs/_template.md, docs/metrics.md, docs/architecture.md, docs/assurance-case.md
    • Change: the first four become the render's copies. Write docs/architecture.md's Components table and design rules and docs/assurance-case.md's requirements, threat model, principles, CWEs and evidence for this library, following NCodeGroup/Base64Url's pages and this repository's main.yml publishing.
    • Done when: pwsh -NoProfile -File .template/Test-AdrIndex.ps1; if (-not $? -or $LASTEXITCODE -or (Select-String -LiteralPath docs/architecture.md,docs/assurance-case.md -Pattern 'Not (described|written) yet' -Quiet)) { exit 1 } else { exit 0 }

    [ ] 11. Give the package its own readme

    • Files: NCode.Extensions.DataProtection/README.md (new)
    • Change: the README's library text without the template header: title, description, Features, Installation, Usage, Requirements, Known Limitations and License, with links absolute to https://github.com/NCodeGroup/Extensions.DataProtection/blob/main/....
    • Done when: if ((Test-Path NCode.Extensions.DataProtection/README.md) -and -not (Select-String -LiteralPath NCode.Extensions.DataProtection/README.md -Pattern 'template:readme-header' -Quiet)) { exit 0 } else { exit 1 }

    [ ] 12. Bring README.md to the .NET library layout

    • Files: README.md (edit)
    • Change: run ./.template/Test-Readme.ps1 -Fix, delete the old badges and title the header replaces, add the curated sentence under the header, move the description into place, and order the sections Features, ## Installation, ## Quick start (the basic setup and factory example), ## Usage (the span extensions, requirements and known limitations under it), ## Project (with the template's lines for Issues, the Code of Conduct, governance, roadmap, architecture and replies), ## License and the release notes.
    • Done when: ./.template/Test-Readme.ps1; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }

    [ ] 13. Record the template update in the changelog

    • Files: CHANGELOG.md (edit)
    • Change: under ## [Unreleased], rewrite the AssemblyVersion entry to say the 1.x assemblies keep 1.0.1.0, the published 1.0.1's, until the next major version, and add entries for the template update with the curated policy, version.json with Nerdbank.GitVersioning and package validation against 1.0.1, and the package's own readme, description and tags, each ending with ([#25](https://github.com/NCodeGroup/Extensions.DataProtection/issues/25)).
    • Done when: if ((Select-String -LiteralPath CHANGELOG.md -Pattern 'v0.145.1' -Quiet) -and -not (Select-String -LiteralPath CHANGELOG.md -Pattern '1\.0\.0\.0. for every' -Quiet)) { exit 0 } else { exit 1 }

    [ ] 14. Pass the gate

    • Files: none
    • Change: run the gate.
    • Done when: ./build/dod.ps1 -Fast; if (-not $? -or $LASTEXITCODE) { exit 1 } else { exit 0 }

    Review checklist

    • Turn off CodeQL's default setup before the pull request can pass: gh api repos/NCodeGroup/Extensions.DataProtection/code-scanning/default-setup --jq .languages lists actions and csharp, which codeql.yml detects; then gh api -X PATCH repos/NCodeGroup/Extensions.DataProtection/code-scanning/default-setup -f state=not-configured, and re-run the failed Analyze jobs.
    • Remove the Commit attribution required check from the "Protect main" ruleset, whose check the update deletes.
    • The package's AssemblyVersion stays 1.0.1.0 and its version is 1.0.2-based; the pack carries NCode.Extensions.DataProtection/README.md, the description and the tags.
    • After the merge: the new commands and agents load only in a new session; tools/Set-RepositoryBaseline.ps1 in project-template mirrors contributions: curated (the coordinator runs it).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    template-update

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions