https://github.com/cailloumajor/update-gh-repos-secrets
Update a secret in all GitHub repositories of an user
https://github.com/cailloumajor/update-gh-repos-secrets
github-secrets go
Last synced: 10 months ago
JSON representation
Update a secret in all GitHub repositories of an user
- Host: GitHub
- URL: https://github.com/cailloumajor/update-gh-repos-secrets
- Owner: cailloumajor
- License: mit
- Created: 2025-08-10T20:58:04.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-10T21:21:08.000Z (10 months ago)
- Last Synced: 2025-08-10T23:32:48.785Z (10 months ago)
- Topics: github-secrets, go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub repositories secrets updater
Uses [GitHub Go SDK](https://github.com/octokit/go-sdk) to find repositories for an user authenticated with an access token, that are active and not forks, and update a secret if they already have a value for it.
## Inputs
Required options are taken from environment variables, as below.
* `AUTH_TOKEN`: the GitHub PAT with following permissions
* "Metadata" repository permissions (read);
* "Secrets" repository permissions (read and write).
* `SECRET_NAME`: the secret name;
* `SECRET_VALUE`: the secret value to set.