Port to the forge: both workflows on our runner, Macula published to macula-sdk's NuGet (dotnet#2) #3

Manually merged
terra merged 2 commits from pallas/2-forge-nuget into main 2026-11-24 03:27:05 +00:00
Member

Refs macula-dotnet#2 (under macula-io/forge-setup#30 section 4 step 5, "dotnet: dotnet nuget push --api-key from the secret, in place of NuGet/login"). Nothing here needs nuget.org, a NuGet API key or a GitHub-hosted runner.

The two workflows, ported.

  • ci.yml — the structural lint of the Go capture helper, the .NET tests on linux-x64, the C# doc blocks and the advisory scan, all on runs-on: docker in the forge's macula-ci-otp by digest with the org's pull credentials, plain-shell checkout and no marketplace action. Go 1.27.4 (the teststation harness) and .NET SDK 10.0.404 come from the vendors' own tarballs, pinned by version and sha256/sha512 in the file, each checked before it is unpacked; ICU is installed only when the image has none. The arm64, macOS and Windows legs keep their steps under one guarded job, if: github.server_url == 'https://github.com', and are named open.
  • release.yml — release guard, docs and advisories are needs of the publish, so a refused tag or a red scan never reaches the push, and a dispatch runs the whole graph and stops before it. The push goes to macula-sdk's NuGet through a 0600 config file, never --api-key <token> on argv where /proc/<pid>/cmdline shows it to every user of the host; the version check compares the tag against the project's <Version>; the package is then read back over the anonymous index, because a package only its uploader can fetch is not published.

Why macula-sdk's NuGet: macula-io is private on the forge and its packages follow its visibility, so nothing published there can be fetched anonymously — which is what a consumer's dotnet restore does. DECIDED 2026-11-24 "New public org macula-sdk"; DECIDED 2026-11-24 "we will ONLY use our own package management on the forge....no API key theatre we are sovereign".

How the push authenticates, measured against the forge and not assumed: dotnet nuget push PUTs the package as multipart to the PackagePublish resource the feed's index advertises at /api/packages/{owner}/nuget (no trailing slash; dotnet PUTs with one and still reaches the auth gate). With --api-key the token travels in an X-NuGet-ApiKey header; with a config file it travels as HTTP basic auth. The same request answers 401 reqPackageAccess with no credential and 500 — past authentication, into the parser — with a token on an org where the account has access, in both forms. dotnet never sends the bare Authorization: <token> form this forge refuses. A 201 is not proven: that needs the sdk-publisher account (menu item), so the first tag is its proof.

The three ci-images reusables are local stand-ins, byte for byte below their STAND-IN header at macula-ci-images 476b5724 (the commit macula-rust's port copies), because on the forge a reusable workflow in another repository is callable only when that repository is public and macula-ci-images is not. Checked: tail -n +15 of each diffs clean against git show 476b5724:… for all three.

actionlint is clean on ci.yml and release.yml; .github/actionlint.yaml declares the docker label. The three stand-ins keep the known full-URL findings they came with (setup-beam, rust-toolchain, setup-php), as on php, rust and go.

Named open, not silently skipped (all on dotnet#2):

  1. A package published from here carries linux-x64 natives only — this forge builds no other runtime (macula-go#2), so Windows, macOS and arm64 consumers get nothing usable. That is a product decision, not a port detail, and it is on dotnet#2 for the Supervisor's menu. fetch_libmacula.sh and check_package.sh name the runtimes that are not carried in every run rather than passing over them.
  2. libmacula.version pins v0.31.0, which is not in the public generic package yet — the fetch answers 404, proven. The first go tag through its port fills it.
  3. No build-provenance attestation: gh attestation verify went with GitHub, and the package's own SHA256SUMS is what a consumer checks.
  4. macOS and Windows have no forge runner: those legs are guarded and stay on GitHub.

Unproven, and why: Actions are off in this repository, so nothing here has run on the forge yet. Done-when 5 (a dispatch running the whole graph) and 6 (a tag publishing) both need them on: the dispatch dry-run and the first tag come after the Supervisor's GO.

🤖 Generated with Claude Code

Refs macula-dotnet#2 (under macula-io/forge-setup#30 section 4 step 5, "dotnet: `dotnet nuget push --api-key` from the secret, in place of `NuGet/login`"). Nothing here needs nuget.org, a NuGet API key or a GitHub-hosted runner. **The two workflows, ported.** - `ci.yml` — the structural lint of the Go capture helper, the .NET tests on linux-x64, the C# doc blocks and the advisory scan, all on `runs-on: docker` in the forge's `macula-ci-otp` by digest with the org's pull credentials, plain-shell checkout and no marketplace action. Go 1.27.4 (the teststation harness) and .NET SDK 10.0.404 come from the vendors' own tarballs, pinned by version and sha256/sha512 in the file, each checked before it is unpacked; ICU is installed only when the image has none. The arm64, macOS and Windows legs keep their steps under one guarded job, `if: github.server_url == 'https://github.com'`, and are named open. - `release.yml` — release guard, docs and advisories are `needs` of the publish, so a refused tag or a red scan never reaches the push, and a dispatch runs the whole graph and stops before it. The push goes to `macula-sdk`'s NuGet through a 0600 config file, never `--api-key <token>` on argv where `/proc/<pid>/cmdline` shows it to every user of the host; the version check compares the tag against the project's `<Version>`; the package is then read back over the anonymous index, because a package only its uploader can fetch is not published. **Why `macula-sdk`'s NuGet:** `macula-io` is private on the forge and its packages follow its visibility, so nothing published there can be fetched anonymously — which is what a consumer's `dotnet restore` does. DECIDED 2026-11-24 "New public org macula-sdk"; DECIDED 2026-11-24 "we will ONLY use our own package management on the forge....no API key theatre we are sovereign". **How the push authenticates, measured against the forge and not assumed:** `dotnet nuget push` PUTs the package as multipart to the `PackagePublish` resource the feed's index advertises at `/api/packages/{owner}/nuget` (no trailing slash; dotnet PUTs with one and still reaches the auth gate). With `--api-key` the token travels in an `X-NuGet-ApiKey` header; with a config file it travels as HTTP basic auth. The same request answers `401 reqPackageAccess` with no credential and `500` — past authentication, into the parser — with a token on an org where the account has access, in both forms. dotnet never sends the bare `Authorization: <token>` form this forge refuses. A `201` is not proven: that needs the `sdk-publisher` account (menu item), so the first tag is its proof. **The three ci-images reusables are local stand-ins**, byte for byte below their STAND-IN header at macula-ci-images `476b5724` (the commit macula-rust's port copies), because on the forge a reusable workflow in another repository is callable only when that repository is public and macula-ci-images is not. Checked: `tail -n +15` of each diffs clean against `git show 476b5724:…` for all three. **actionlint** is clean on `ci.yml` and `release.yml`; `.github/actionlint.yaml` declares the `docker` label. The three stand-ins keep the known full-URL findings they came with (setup-beam, rust-toolchain, setup-php), as on php, rust and go. **Named open, not silently skipped** (all on dotnet#2): 1. A package published from here carries **linux-x64 natives only** — this forge builds no other runtime (macula-go#2), so Windows, macOS and arm64 consumers get nothing usable. That is a product decision, not a port detail, and it is on dotnet#2 for the Supervisor's menu. `fetch_libmacula.sh` and `check_package.sh` name the runtimes that are not carried in every run rather than passing over them. 2. `libmacula.version` pins `v0.31.0`, which is not in the public generic package yet — the fetch answers `404`, proven. The first go tag through its port fills it. 3. No build-provenance attestation: `gh attestation verify` went with GitHub, and the package's own `SHA256SUMS` is what a consumer checks. 4. macOS and Windows have no forge runner: those legs are guarded and stay on GitHub. **Unproven, and why:** Actions are off in this repository, so nothing here has run on the forge yet. Done-when 5 (a dispatch running the whole graph) and 6 (a tag publishing) both need them on: the dispatch dry-run and the first tag come after the Supervisor's GO. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The port, under macula-io/forge-setup#30 section 4 step 5:

- ci.yml: the capture helper's structural floor and the .NET tests run on
  `docker` in the forge's ci-otp image by digest, plain-shell checkout, no
  marketplace action. .NET SDK 10.0.404 comes from Microsoft's tarball checked
  against their sha512, Go 1.27.4 from go.dev's; ICU is installed only when the
  image has none, because .NET needs it and a build image need not carry it. The
  arm64, macOS and Windows legs keep their steps in a guarded job and are named
  open.
- release.yml: guard, docs and advisories are `needs` on publish, so a refused
  tag or a red scan never reaches the push. The push is a `dotnet nuget push` to
  the forge's NuGet registry under macula-sdk, authenticated as sdk-publisher
  through a 0600 config file rather than `--api-key <token>` on argv. A dispatch
  runs the whole graph and stops before the push.
- scripts/fetch_libmacula.sh takes libmacula from the PUBLIC generic package
  (anonymous GET, checked against that package's own SHA256SUMS) instead of a
  GitHub release plus `gh attestation verify`; it names any runtime the package
  does not publish instead of passing over it.
- scripts/check_package.sh checks the runtimes this tree actually fetched, and
  names the ones it did not.

The three ci-images reusables are local STAND-INs at 476b5724, byte for byte
below a STAND-IN header; .github/actionlint.yaml declares the docker label.
- release.yml: the read-back took the id and version apart at the file name's
  last dot (Macula.0.11.0 read as Macula.0.11 / 0), so a good push went red.
  Both now come from the csproj, the flat container's index is asked for the
  version, and the anonymous download must be byte-equal to the package pushed.
- fetch_libmacula.sh: macula-go's forge SHA256SUMS also lists its
  sealed-interop log, which this script never fetches; --strict over the whole
  file failed on it. The check now covers exactly the files fetched.
- check_package.sh: under pipefail a find on a runtime directory that does not
  exist ended the script silently before the runtime was named absent.
terra manually merged commit c1608e605b into main 2026-11-24 03:27:05 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-io/macula-dotnet!3
No description provided.