Secrets for nominated branch

I can set secrets at Org or repo level, but it is global for all branches.

Can I have a feature to set it only for nominated branch (such as master/main branch only)?

for example, I can set this in travis-ci.

image