Permissions for Sharing Workflow Template

As per the documentation, I need to create a .github repo (public) in my organization and create a directory called “workflow-templates” in that and then define my yml and metadata files in that. But since this is inside a public repository, anyone (anonymous) can see the markup. I might have to include some sensitive info like Secret names, as part of some steps so that the people trying to create a workflow from my template don’t have to memorize the steps to be included and just add their logic. But since it is anonymously accessible, I think I cannot do that. Is there a way to prevent anonymous users from accessing this directory (workflow-templates) and the files inside that?