Port to the forge: both workflows on our runner, Macula published to macula-sdk's NuGet (dotnet#2) #3
Loading…
Reference in a new issue
No description provided.
Delete branch "pallas/2-forge-nuget"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs macula-dotnet#2 (under macula-io/forge-setup#30 section 4 step 5, "dotnet:
dotnet nuget push --api-keyfrom the secret, in place ofNuGet/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 onruns-on: dockerin the forge'smacula-ci-otpby 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 areneedsof 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 tomacula-sdk's NuGet through a 0600 config file, never--api-key <token>on argv where/proc/<pid>/cmdlineshows 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-iois private on the forge and its packages follow its visibility, so nothing published there can be fetched anonymously — which is what a consumer'sdotnet restoredoes. 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 pushPUTs the package as multipart to thePackagePublishresource 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-keythe token travels in anX-NuGet-ApiKeyheader; with a config file it travels as HTTP basic auth. The same request answers401 reqPackageAccesswith no credential and500— past authentication, into the parser — with a token on an org where the account has access, in both forms. dotnet never sends the bareAuthorization: <token>form this forge refuses. A201is not proven: that needs thesdk-publisheraccount (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 +15of each diffs clean againstgit show 476b5724:…for all three.actionlint is clean on
ci.ymlandrelease.yml;.github/actionlint.yamldeclares thedockerlabel. 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):
fetch_libmacula.shandcheck_package.shname the runtimes that are not carried in every run rather than passing over them.libmacula.versionpinsv0.31.0, which is not in the public generic package yet — the fetch answers404, proven. The first go tag through its port fills it.gh attestation verifywent with GitHub, and the package's ownSHA256SUMSis what a consumer checks.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