fix(ci): let the gate reach our own registry, and record how secrets travel #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/secrets-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?
The first release failed with a 401 whose body is
reqPackageAccess— the same answer the registry gives a request carrying noAuthorizationheader, and distinct fromauthGroup.Verify, which is what a malformed token gets. Both were probed against the live endpoint to tell them apart. cargo had the token variable set, but empty, so it sent an empty header and the server read the request as anonymous.Cause: organisation secrets do not reach a called workflow on their own, while organisation variables do — the job had already pulled its container image through
vars.REGISTRYbefore failing. The caller must pass them withsecrets: inherit(supported:Job.InheritSecretsin Forgejo's act fork), and the callee'sworkflow_callblock must stay empty, or Forgejo runs it on every push.rust-ci.ymlgains the same wiring for the read token. It needs none today and will need it the moment one of our crates depends on another — better to have it in place than to discover it on the next release.