https://github.com/xt0rted/secrets-sync-template
Template to quickly get set up using secrets-sync
https://github.com/xt0rted/secrets-sync-template
github-actions secrets workflows
Last synced: over 1 year ago
JSON representation
Template to quickly get set up using secrets-sync
- Host: GitHub
- URL: https://github.com/xt0rted/secrets-sync-template
- Owner: xt0rted
- License: mit
- Created: 2022-01-29T09:16:20.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T06:42:05.000Z (about 2 years ago)
- Last Synced: 2025-03-01T03:41:22.921Z (over 1 year ago)
- Topics: github-actions, secrets, workflows
- Homepage: https://github.com/xt0rted/secrets-sync
- Size: 35.2 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# secrets-sync
The [secrets-sync](https://github.com/xt0rted/secrets-sync) config for managing secrets across multiple repositories through code.
## Getting started
1. Edit the [config](secrets-sync.yml) and mappings in the [`workflow`](.github/workflows/secrets-sync.yml).
2. Create a [Personal Access Token](https://github.com/settings/tokens/new?scopes=repo) with the `repo` scope.
3. Add it as a secret to this repository with the name `SECRET_SYNC_TOKEN`.
## Behavior
Secrets will be created if they don't exist in the destination repository, or updated if they do exist.
If a secret value is removed from the config it will be deleted from any repository it was assigned to.
## Usage
The [`secrets-sync`](.github/workflows/secrets-sync.yml) workflow can be manually triggered whenever you want to re-sync your secrets.
[yamllint](https://github.com/adrienverge/yamllint) will run on any pull request or push to `main` to help ensure the config file is formatted correctly.
[Enable debug logging](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging) to see more details about the workflow run.