GitHub Actions: reusable workflow does not receive the secret provided
The called workflow works, but the token used by his job is empty.
How to identify the source of the problem
Check the workflow call.secrets declaration and what secret the calling workflow transmits.
Check the workflow event type, permissions joba, run ID and first failed step.
Repair steps
Pass the necessary secret openly in secret or use the allowed secret: inherit in a controlled context.
How to Test Solution
Trusted reusable workflow works and unconnected calls do not receive access.
Security and restrictions
Apply minimum token privileges and re-impotence. Do not remove main branch protection only for the convenience of the machine.