Creating secrets for an organization When creating a secret or variable in an organization, you can use a policy to limit access by repository. For example, you can grant access to all repositories, or limit access to only private repositories or a specified list of repositories. To specify that the secret should be available to selected repositories within the organization, use the --repos or -r flag. gh secret set --org ORG_NAME SECRET_NAME --repos REPO-NAME-1, REPO-NAME-2 Note: REST API endpoints for GitHub Actions Secrets Use the REST API to interact with secrets in GitHub Actions. * Set selected repositories for an organization secret Replaces all repositories for an organization secret when the visibility for repository access is set to selected. The visibility is set when you Create or update an organization secret. Request example Put /orgs/{org}/actions/secrets/{secret_name}/repositories Reference: https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use- secrets https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#set-selected- repositories-for-an-organization-secret