Interview Prep/GitHub Actions/Secrets, Variables, Environments & Permissions

How do you share secrets across many repos without copying them?

BeginnerConceptSecrets, Variables, Environments & Permissions
Answer

Organization secrets with repository access set to "Selected repositories" (or private repos only). Better still, remove the need: OIDC to cloud providers, then read runtime secrets from AWS Secrets Manager, Azure Key Vault, GCP Secret Manager or Vault (Vault also supports GitHub OIDC via hashicorp/vault-action with method: jwt). One rotation point, no static secret in GitHub.

All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, Variables, Environments & Permissions