fix(ci): add the Bearer prefix in the workflow, not in the secret #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/bearer-in-workflow"
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
Bearerprefix is how cargo's token reaches Forgejo — a detail of the protocol, not a property of the token. Stored inside a write-only secret it cannot be seen or reviewed, and its absence shows up only as a401whose body readsauthGroup.Verify. The first release lost a round to exactly that.With the prefix here the secrets hold bare tokens, the shape is identical across every repository because it travels from the template, and forgetting it is no longer possible.
Coordination required: both
CRATES_READ_TOKENandCRATES_WRITE_TOKENmust be rewritten without the prefix when this lands — carrying it in both places sendsBearer Bearer ….Departs from the letter of ADR-018, which puts the prefix in the secret; the amendment gets a line saying why.