Skip to content

xt0rted/secrets-sync-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secrets-sync

The secrets-sync config for managing secrets across multiple repositories through code.

Getting started

  1. Edit the config and mappings in the workflow.
  2. Create a Personal Access Token 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 workflow can be manually triggered whenever you want to re-sync your secrets.

yamllint will run on any pull request or push to main to help ensure the config file is formatted correctly.

Enable debug logging to see more details about the workflow run.