{"id":22327440,"url":"https://github.com/rewindio/github-repo-secrets-manager","last_synced_at":"2025-07-29T18:31:02.012Z","repository":{"id":39675163,"uuid":"247146789","full_name":"rewindio/github-repo-secrets-manager","owner":"rewindio","description":"Manage github repo secrets using a common configuration file","archived":false,"fork":false,"pushed_at":"2024-10-28T13:19:34.000Z","size":44,"stargazers_count":21,"open_issues_count":0,"forks_count":5,"subscribers_count":23,"default_branch":"main","last_synced_at":"2024-10-28T16:56:08.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rewindio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-13T19:24:41.000Z","updated_at":"2024-10-28T13:19:36.000Z","dependencies_parsed_at":"2024-10-28T14:49:42.997Z","dependency_job_id":"bdcea079-bf84-49bb-b55b-e0c08b53722f","html_url":"https://github.com/rewindio/github-repo-secrets-manager","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Fgithub-repo-secrets-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Fgithub-repo-secrets-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Fgithub-repo-secrets-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Fgithub-repo-secrets-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rewindio","download_url":"https://codeload.github.com/rewindio/github-repo-secrets-manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228034990,"owners_count":17859245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T03:09:26.796Z","updated_at":"2024-12-04T03:09:27.394Z","avatar_url":"https://github.com/rewindio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-repo-secrets-manager\n\nManage github repo secrets using a common configuration file.  Supports repos, orgs and groups of secrets.\n\n## Installation\n\n```bash\ngit clone rewindio/github-repo-secrets-manager\npip3 install -r requirements.txt\n```\n\n## Prerequistes\n\n- A Github Personal Access Token (PAT) that has repo and admin:org scopes\n\nTo update Org-wide secrets, you need to have permissions to edit the secrets at the Org level.\nRepository secrets can be updated without this access.\n\n## Usage\n\n```bash\nusage: github-secrets-manager.py [-h] --secrets-file SECRETS_FILENAME\n                                 --github-pat GITHUB_PAT [--verbose]\n                                 [--repos REPOS_FILTER] [--dryrun]\n\nSynchronize secrets with github repos\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --secrets-file SECRETS_FILENAME\n                        Secrets file\n  --github-pat GITHUB_PAT\n                        Github access token\n  --verbose             Turn on DEBUG logging\n  --repos REPOS_FILTER  Comma separated list of repos to be updated\n  --dryrun              Do a dryrun - no changes will be performed\n```\n\n```bash\n./github-secrets-manager.py --secrets-file github_secrets.yaml --github-pat 123456789\n```\n\n### Notes\n\n- You must be a GitHub Organization admin if you try to apply organization level secrets, or you will see errors. The script will continue and other changes will work as intended.\n- The --repos option acts only as a filter when processing the secrets file.\n- The repos must be defined in the secrets file to be updated\n\n## Configuration File\n\n```yaml\ngroups:\n  pandas:\n    - someuser/my-repo\n    - anotheruser/my-other-repo\n  koalas:\n    - someoneelse/some-other-repo\n\nsecrets:\n  -\n    name: SECRET1\n    value: 'value1'\n\n    repos:\n      - myorg/repo-one\n      - myorg/repo2\n  -\n    name: SECRET2\n    value: 'value2'\n\n    groups:\n      - pandas\n  -\n    name: SECRET3\n    value: ''\n\n    repos:\n      - myorg/repo-one\n    groups:\n      - koalas\n  -\n    name: SECRET4\n    value: 'an org level secret'\n\n    orgs:\n      - acme\n\ndependabot:\n  -\n    name: DEPENDABOT_SECRET1\n    value: 'dummy'\n    orgs:\n      - acme\n  -\n    name: DEPENDABOT_REPO_SECRET1\n    value: ''\n    orgs:\n      - myorg/repo-one\n\n```\n\n**Note**\nIf the `value` field is missing or set to empty string, it will be removed from the repo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewindio%2Fgithub-repo-secrets-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frewindio%2Fgithub-repo-secrets-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewindio%2Fgithub-repo-secrets-manager/lists"}