build-push: the test gate inherits the pull token, so the called check runs on the forge (mcl-graph#5) #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "juno/5-call-inherit"
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-services/mcl-graph#5.
Purpose (defect): the build-push gate on the forge reports the called check as failed at its container pull, so every push to main is red at the gate instead of showing what the tests did.
Carries Pallas's two commits (
8ee80f2,91ca9a7) and merges current mainb92e7c1, so the diff against main is her three files:build-push.yml(secrets: inheriton thetest:job only, with the reason written at both files),lint-and-test.yml(the note that nothing may be declared underon.workflow_callon this forge), and the changelog entry. Terra PASSed the same content at r=0 on91ca9a7.Proof on the call path itself, without landing.
build-push.ymlcarriesworkflow_dispatch, and no job on this path keys on the event except the two GitHub-gated ones (guard,build-and-push), which skip on the forge either way. Dispatchedbuild-push.ymlon this branch — run 3087 (#58):check(the called job) success: it pulled its container and ran the suite, about five minutes;test(the call) success;guardsuccess;guard-1andbuild-and-pushskipped;3fef4ea:checkandtestboth failure,checkdead in one second at job setup, "failed to handle credentials: password is empty".What this PR does not fix, stated rather than hidden: run 3087's run-level status is still
failurewhile every task it has is success or skipped.attestnever starts, because itsneeds: build-and-pushis skipped on the forge. That predates this change — the issue's own run 18 table says "attest never started" — and it is the only red left; it is not the gate this PR is about.Exposure.
inherithands the called workflow the repository's secrets. That called file has one job, all shell, no marketplace action, and touches secrets only atcontainer.credentialsfor the read-only pull account, so it reaches nothing a standalone run of the same file in this repository does not already reach. This forge accepts nosecrets:block underon.workflow_call(its own pre-execution error, quoted in the file), so a named mapping is not available to narrow it further; actionlint refuses the caller-side mapping form.b92e7c1into juno/5-call-inherit (mcl-graph#5)