CI: reckon-gater's workflows run on the forge (.forgejo port, as reckon-db#5) #4

Closed
opened 2026-12-02 11:11:44 +00:00 by saturnus · 1 comment
Member

Purpose (fix): reckon-gater's checks and its hex release run on the forge, so a change can land on a named, green run. Today #2 (PR 3) cannot land on one: Actions is off here, and the workflows are GitHub-shaped.

Refs #2, reckon-db-org/reckon-db#5 (the same port, PR 6), macula-io/martha#601. The model is reckon-db-org/evoq's port, which gater's workflows were copied from.

Ruling (Supervisor, relayed by Mars 2026-12-02)

  • Port the workflows to .forgejo/workflows the way reckon-db#5 did.
  • Actions stays OFF until the Supervisor gives the GO for the port branch. The port lands on its own green run.
  • Until it lands, nothing else is pushed to this repository. Then main is merged into PR 3 once, and #2 lands on a real run.

What moves

The forge reads only .forgejo once it exists, so all three workflows move there with git mv, keeping their history.

  • lint-and-test.yml:
    • Runs on the docker label in macula-pub/macula-ci-otp, pinned by evoq's digest (OTP 28.4.3, rebar3 3.27.0).
    • Uses the byte-identical plain-shell checkout, then scripts/is_erlang_the_pinned_version.sh in place of setup-beam's strict pin and the rebar3 download.
    • Drops actions/cache, a JavaScript action; the image has no node.
    • Keeps every gate: compile, xref, lint, eunit, ct, proper, and the dialyzer ratchet.
  • docs.yml: evoq's forge copy. The snippet check is written out in the job, because a cross-repository reusable call does not run here. Its "Write the check" step is byte-identical to macula-ci-images@711cfee7's doc-snippets-erlang.yml.
  • publish-hex.yml: evoq's forge shape, with gater's own header facts.
    • Plain-shell checkouts.
    • Local reusable calls only, with no if: (evoq 1.31.1's fix).
    • The release guard is the local pinned copy.
  • ci-images-release-guard.yml: evoq's copy, byte for byte.
  • .github/actionlint.yaml: evoq's, declaring the docker label.
  • scripts/publish-to-hex.sh: names the .forgejo path.

Threat model

  • Asset: hex.pm publish rights (HEX_API_KEY) and the integrity of what CI says is green.
  • The secret: the forge has no deployment environment, so HEX_API_KEY becomes a repository secret, set by the owner and not by this change. Until it is set, publish stops at its key check.
    • reckon-gater is PUBLIC, but a pull request from a fork gets no secrets on Forgejo.
    • Only members with write access push a branch here.
    • So an outside attacker cannot reach the key through a workflow. This is a note, not a guard.
  • The checkout: the plain-shell checkout puts the run token only in the environment (http.extraHeader), never in a URL or on a command line, and refuses any commit but the run's own.
  • Out of scope: turning Actions on and setting the secret.

Done when

  1. .forgejo/workflows/ holds lint-and-test.yml, docs.yml, publish-hex.yml and ci-images-release-guard.yml, and .github/workflows/ is gone. actionlint passes, with docker declared.
  2. lint-and-test runs every gate of the old job (compile, xref, lint, eunit, ct, proper, dialyzer ratchet) in the pinned image, with no JavaScript action.
  3. publish-hex's reusable calls are local and carry no if:, and publish runs only for a pushed v*.*.* tag.
  4. The port's own run, after the GO, is green.
Purpose (fix): reckon-gater's checks and its hex release run on the forge, so a change can land on a named, green run. Today #2 (PR 3) cannot land on one: Actions is off here, and the workflows are GitHub-shaped. Refs #2, reckon-db-org/reckon-db#5 (the same port, PR 6), macula-io/martha#601. The model is reckon-db-org/evoq's port, which gater's workflows were copied from. ## Ruling (Supervisor, relayed by Mars 2026-12-02) - Port the workflows to `.forgejo/workflows` the way reckon-db#5 did. - Actions stays OFF until the Supervisor gives the GO for the port branch. The port lands on its own green run. - Until it lands, nothing else is pushed to this repository. Then main is merged into PR 3 once, and #2 lands on a real run. ## What moves The forge reads only `.forgejo` once it exists, so all three workflows move there with `git mv`, keeping their history. - **`lint-and-test.yml`**: - Runs on the `docker` label in `macula-pub/macula-ci-otp`, pinned by evoq's digest (OTP 28.4.3, rebar3 3.27.0). - Uses the byte-identical plain-shell checkout, then `scripts/is_erlang_the_pinned_version.sh` in place of setup-beam's strict pin and the rebar3 download. - Drops `actions/cache`, a JavaScript action; the image has no node. - Keeps every gate: compile, xref, lint, eunit, ct, proper, and the dialyzer ratchet. - **`docs.yml`**: evoq's forge copy. The snippet check is written out in the job, because a cross-repository reusable call does not run here. Its "Write the check" step is byte-identical to macula-ci-images@711cfee7's `doc-snippets-erlang.yml`. - **`publish-hex.yml`**: evoq's forge shape, with gater's own header facts. - Plain-shell checkouts. - Local reusable calls only, with no `if:` (evoq 1.31.1's fix). - The release guard is the local pinned copy. - **`ci-images-release-guard.yml`**: evoq's copy, byte for byte. - **`.github/actionlint.yaml`**: evoq's, declaring the `docker` label. - **`scripts/publish-to-hex.sh`**: names the `.forgejo` path. ## Threat model - **Asset:** hex.pm publish rights (`HEX_API_KEY`) and the integrity of what CI says is green. - **The secret:** the forge has no deployment environment, so `HEX_API_KEY` becomes a repository secret, set by the owner and not by this change. Until it is set, `publish` stops at its key check. - reckon-gater is PUBLIC, but a pull request from a fork gets no secrets on Forgejo. - Only members with write access push a branch here. - So an outside attacker cannot reach the key through a workflow. This is a note, not a guard. - **The checkout:** the plain-shell checkout puts the run token only in the environment (`http.extraHeader`), never in a URL or on a command line, and refuses any commit but the run's own. - **Out of scope:** turning Actions on and setting the secret. ## Done when 1. `.forgejo/workflows/` holds `lint-and-test.yml`, `docs.yml`, `publish-hex.yml` and `ci-images-release-guard.yml`, and `.github/workflows/` is gone. `actionlint` passes, with `docker` declared. 2. lint-and-test runs every gate of the old job (compile, xref, lint, eunit, ct, proper, dialyzer ratchet) in the pinned image, with no JavaScript action. 3. publish-hex's reusable calls are local and carry no `if:`, and `publish` runs only for a pushed `v*.*.*` tag. 4. The port's own run, after the GO, is green.
Author
Member

Done, on main cc8ffd9e (PR 5; Mercurius PASS; PR runs 6826/6827, main runs 6828/6829 green, and gater#2's tip ran on it: 6834-6839).

  • Done when 1: .forgejo/workflows holds lint-and-test, docs, publish-hex and ci-images-release-guard; .github/workflows is gone; actionlint passes with docker declared.
  • Done when 2: lint-and-test runs compile, xref, lint, eunit, ct, proper and the dialyzer ratchet in macula-ci-otp by digest, no JavaScript action.
  • Done when 3: publish-hex's reusable calls are local with no if:, and publish runs only for a pushed v*.. tag (evoq's forge body, verbatim).
  • Done when 4: the port's own runs are green (above).
Done, on main cc8ffd9e (PR 5; Mercurius PASS; PR runs 6826/6827, main runs 6828/6829 green, and gater#2's tip ran on it: 6834-6839). - Done when 1: .forgejo/workflows holds lint-and-test, docs, publish-hex and ci-images-release-guard; .github/workflows is gone; actionlint passes with docker declared. - Done when 2: lint-and-test runs compile, xref, lint, eunit, ct, proper and the dialyzer ratchet in macula-ci-otp by digest, no JavaScript action. - Done when 3: publish-hex's reusable calls are local with no if:, and publish runs only for a pushed v*.*.* tag (evoq's forge body, verbatim). - Done when 4: the port's own runs are green (above).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
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
reckon-db-org/reckon-gater#4
No description provided.