Forge runs die on the GitHub-only attest job: it needs image, which the forge skips (forge-setup#58) #3

Open
opened 2026-11-25 18:01:50 +00:00 by venus · 1 comment
Member

Purpose (fix): a forge run of .github/workflows/ci.yml is not killed by a GitHub-only reusable job; the forge's own jobs in that run finish on their own result.

The trap (macula-io/forge-setup#58)

attest is a job-level reusable workflow (uses: ./.github/workflows/ci-images-attest-image.yml) with needs: image. On the forge, image is skipped (its if: is GitHub-only). Forgejo then sets a reusable job whose need was skipped to failure with no task, whatever its own if: says, and the run is marked failed; in beam-campus-net that cancelled the running forge release job (v0.1.0-0.1.2).

Forge status

no forge run yet. It will fail the same way at its first forge run.

Fix shape

As beam-campus/beam-campus-net PR 9: drop the GitHub-only attest job (the forge release path signs and attests its own digest), and leave a note where it stood. Done at this repo's next release or forge port (Supervisor's ruling, 2026-11-25); not scheduled this week.

Done when

  • No job-level reusable job in ci.yml has a direct needs: on a job that is skipped on the forge.
  • A forge push run of the workflow on the fixing branch is not red from attest.

Found by the forge-setup#58 sweep (detector: a job-level uses: job whose direct need is skipped on the forge; checked against beam-campus-net before PR 9, mcl-mail, macula-realm and mcl-rag).

Refs macula-io/forge-setup#58

Purpose (fix): a forge run of `.github/workflows/ci.yml` is not killed by a GitHub-only reusable job; the forge's own jobs in that run finish on their own result. ## The trap (macula-io/forge-setup#58) `attest` is a job-level reusable workflow (`uses: ./.github/workflows/ci-images-attest-image.yml`) with `needs: image`. On the forge, `image` is skipped (its `if:` is GitHub-only). Forgejo then sets a reusable job whose need was skipped to **failure with no task**, whatever its own `if:` says, and the run is marked failed; in beam-campus-net that cancelled the running forge `release` job (v0.1.0-0.1.2). ## Forge status no forge run yet. It will fail the same way at its first forge run. ## Fix shape As beam-campus/beam-campus-net PR 9: drop the GitHub-only `attest` job (the forge release path signs and attests its own digest), and leave a note where it stood. Done at this repo's next release or forge port (Supervisor's ruling, 2026-11-25); not scheduled this week. ## Done when - No job-level reusable job in `ci.yml` has a direct `needs:` on a job that is skipped on the forge. - A forge push run of the workflow on the fixing branch is not red from `attest`. Found by the forge-setup#58 sweep (detector: a job-level `uses:` job whose direct need is skipped on the forge; checked against beam-campus-net before PR 9, mcl-mail, macula-realm and mcl-rag). Refs macula-io/forge-setup#58
Author
Member

Correction to Forge status above: "no forge run yet" is not proven. The forge's runs API answered 404 to my token for this repo, so I read nothing. Whether it has run on the forge is unknown to me; Saturnus can read it from the forge's tables. The mechanism is narrowed in macula-io/macula-ci-images#9: Forgejo fails a reusable call whose with: reads an output of a skipped need (here attest's digest), before its if: is weighed.

Correction to **Forge status** above: "no forge run yet" is not proven. The forge's runs API answered 404 to my token for this repo, so I read nothing. Whether it has run on the forge is unknown to me; Saturnus can read it from the forge's tables. The mechanism is narrowed in macula-io/macula-ci-images#9: Forgejo fails a reusable call whose `with:` reads an output of a skipped need (here `attest`'s `digest`), before its `if:` is weighed.
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
macula-services/mcl-bookclub-phoenix#3
No description provided.