set-org-secrets-from-env.sh reads a dotenv file and adds or updates every secret in it on every repository in a GitHub organization, at repo level or in a named deployment environment. Existing secrets are overwritten, new ones are created.
Only need one secret? See the companion script set-org-secret.sh.
- Bulk create/update all
KEY=valuepairs from a.envfile - Repo-level secrets, or environment secrets with
--env production(the environment is created if missing)