GitHub Actions - Best Way to Reuse Secrets for Multiple Repositories

Viewed 10

GitHub Enterprise with thousands of repos in the organization. My team has (currently) 15 repos and all need the same secrets. Is there a way to "centralize" these secrets so I won't have to create/update these secrets in each repo individually? Organization secrets are out of the question, I need something in the team/project scope

1 Answers

You can set an organisation repo and then scope the secret to one or more repositories.

scope the repo to select repositories

Pick the repos you need

enter image description here

There is no other option in GitHub.

You could also setup an Azure Key Vault or similar and run a script to read the secrets and set them as a secret for the action job.

Related