PROBE (do not merge): does secrets: inherit reach the called check #6

Closed
pallas wants to merge 3 commits from pallas/5-probe-workflow-call into main
Member

Throwaway probe for macula-services/mcl-graph#5. It calls this repository's lint-and-test.yml with secrets: inherit and nothing else, to prove on the forge that the registry pull token reaches the called check on a non-default ref. Closed and deleted the moment the run reports.

Refs macula-services/mcl-graph#5

Throwaway probe for macula-services/mcl-graph#5. It calls this repository's lint-and-test.yml with secrets: inherit and nothing else, to prove on the forge that the registry pull token reaches the called check on a non-default ref. Closed and deleted the moment the run reports. Refs macula-services/mcl-graph#5
Pass the registry pull token to the lint-and-test call
Some checks failed
build-and-push / guard-1 (push) Has been skipped
build-and-push / guard (push) Successful in 0s
build-and-push / build-and-push (push) Has been skipped
build-and-push / attest (push) Failing after 0s
build-and-push / check (push) Successful in 5m45s
build-and-push / test (push) Successful in 0s
lint-and-test.yml / Pass the registry pull token to the lint-and-test call (push) Failing after 0s
8ee80f237f
A called workflow gets none of the caller's secrets unless they are passed and
declared. build-push's `test` job calls this repository's lint-and-test.yml for
its gate, and the called check pulls its CI image from the forge registry with
secrets.CI_IMAGE_PULL_TOKEN: that resolved empty, so the job stopped before its
first step — the log of task 4639 reads "failed to handle credentials: password
is empty" — and every push to main has been red at that gate (run 18 = 2286 on
3fef4ea; earlier 901, 904-913), while the standalone lint-and-test run on the
same commit was green.

The repository variables do cross the call: the same message names no missing
user. So only the one secret is passed, from build-push's `test` job, and
declared under lint-and-test's on.workflow_call.

Refs macula-services/mcl-graph#5
Inherit the secrets at the call: this forge forbids secrets under workflow_call
Some checks failed
build-and-push / guard-1 (push) Has been skipped
build-and-push / test (push) Successful in 0s
build-and-push / guard (push) Successful in 0s
c4 model / c4-model (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 3s
lint-and-test / check (pull_request) Successful in 5m17s
build-and-push / build-and-push (push) Has been skipped
build-and-push / check (push) Successful in 7m48s
build-and-push / attest (push) Failing after 0s
91ca9a7c32
Completes the fix above. A named mapping at the caller is refused, because
Forgejo 15 accepts only `inputs` and `outputs` under on.workflow_call: the
callee cannot declare the secret, and actionlint refuses a caller naming an
undeclared one. Worse, an `on.workflow_call.secrets` block does not merely fail
to declare anything — it makes the whole file invalid, and the forge's own
pre-execution error says why:

  invalid value on key "workflow_call": workflow_call only supports keys
  "inputs" and "outputs", but key "secrets" was found

and an invalid file is then run against every ref it is pushed to (four such
runs, 2327/2328/2330/2331, all failed at preparation).

So the `test` job's call passes `secrets: inherit` — no declaration on either
side, same-repository call into this repository's own lint workflow — and
lint-and-test's `workflow_call` records the trap so nobody re-adds it.

Refs macula-services/mcl-graph#5
PROBE ONLY: does a called workflow inherit the registry pull token (throwaway, never lands)
Some checks failed
probe-call / c (push) Has been cancelled
probe-call / probe (push) Has been cancelled
d3a6847b3f
PROBE ONLY: call the real lint-and-test with secrets: inherit (throwaway)
All checks were successful
probe-call / check (push) Successful in 6m2s
probe-call / c (push) Successful in 0s
72df1f09e4
PROBE ONLY: trigger the real call on a pull_request (throwaway)
Some checks failed
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
probe-call / check (pull_request) Failing after 3m20s
probe-call / c (pull_request) Failing after 0s
lint-and-test / check (pull_request) Successful in 5m56s
c5eb92ea1e
pallas closed this pull request 2026-11-23 05:23:47 +00:00
Some checks failed
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
probe-call / check (pull_request) Failing after 3m20s
probe-call / c (pull_request) Failing after 0s
lint-and-test / check (pull_request) Successful in 5m56s

Pull request closed

Sign in to join this conversation.
No reviewers
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-graph!6
No description provided.