Its a known bug it seems after doing some research where secrets cannot be propagated by default if GitHub thinks they are secrets, following threads discuss the same:
https://github.com/orgs/community/discussions/37942
https://github.com/orgs/community/discussions/13082
An alternate way describer in a medium post that encodes and decodes to skip GitHub's auto filtering of secret set to output variables: