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

feat: allow syncing of environment secrets #55

Closed Natanande closed 2 years ago

Natanande commented 2 years ago

This commit allows one to set an input called "environment", which when enabled will sync the secrets as environment secrets to the same repositories instead of putting the secrets as repository secrets.

The action will fail if the targeted repositories does not have the specified environment created prior to running the action.

Resolves #48

codecov-commenter commented 2 years ago

Codecov Report

Merging #55 (19105dd) into master (178c0ff) will increase coverage by 0.19%. The diff coverage is 96.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #55      +/-   ##
==========================================
+ Coverage   98.23%   98.42%   +0.19%     
==========================================
  Files           6        6              
  Lines         113      127      +14     
  Branches       13       16       +3     
==========================================
+ Hits          111      125      +14     
  Misses          2        2              
Impacted Files Coverage Δ
src/config.ts 100.00% <ø> (ø)
src/github.ts 98.61% <96.29%> (+0.36%) :arrow_up:
src/main.ts 100.00% <100.00%> (ø)
src/secrets.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 178c0ff...19105dd. Read the comment docs.

jpoehnelt commented 2 years ago

Mind rebasing this?

Natanande commented 2 years ago

I have fixed the merge conflicts so it should be possible to merge to master.

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 1.7.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: