jpoehnelt / secrets-sync-action

A Github Action that can sync secrets from one repository to many others.
https://github.com/marketplace/actions/secrets-sync-action
Apache License 2.0
314 stars 92 forks source link

Sync secrets into repository Environments #48

Closed Natanande closed 2 years ago

Natanande commented 3 years ago

Github repositories has a neat feature where one can specify a set of environments with their own protection rules. https://docs.github.com/en/actions/reference/environments#environment-secrets

This is useful for reusing and writing clean workflow code. For example, I might have a secret DEPLOY_TOKEN in my environment "prod", and the same secret with different value in "dev". This allows an action to simply deploy using the same secret name all the time, and the set environment decides the value (and if it's allowed to be used).

This becomes especially important when the number of environments grows. With environment secrets, the workflow code stays the same, but without, the code has to be modified and grown each time a new environment is added.

AntonioNaranjo1 commented 2 years ago

very interesting functionality

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 1.7.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: