https://github.com/fabiobove-dr/git-hub-secrets-updater
A simple python script that updates the secrets of a repo based on the content of a json file
https://github.com/fabiobove-dr/git-hub-secrets-updater
github secrets-creation secrets-update
Last synced: 2 months ago
JSON representation
A simple python script that updates the secrets of a repo based on the content of a json file
- Host: GitHub
- URL: https://github.com/fabiobove-dr/git-hub-secrets-updater
- Owner: fabiobove-dr
- License: gpl-3.0
- Created: 2023-04-15T19:56:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-15T21:41:15.000Z (over 3 years ago)
- Last Synced: 2025-02-25T07:47:01.787Z (over 1 year ago)
- Topics: github, secrets-creation, secrets-update
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-hub-secrets-updater
A simple python script that updates the secrets of a repo based on the content of a json file
# Why?
The other day i wanted to create an old repo from scratch, the only issue? It had way toooo many secrets.
Imagine you need to create secrets for a repo that uses: EC2, Docker Hub, MS Graph APIs, Django, Posrgres.
I bet you'll like this quick fix.
# What you need ?
- **oauth_settings.yml** file, which is something like:
repo_owner: "some-strange-name-goes-here"
repo_name: "foo-mega-wooo-repo"
github_token: "asdasdadaklfafafmamfa_donthopethisworks_asdadakkkosda"
- **secrets.json** file, contains the secrets you want to set:
{
"SHHH": "something_to_hide",
"MMMM": "secret_text"
}
*Note* if the secret exists it gets updated
- Open a terminal, write this:
initialize_create_secrets.py
# Cheers!
Fabio