-
Notifications
You must be signed in to change notification settings - Fork 1
[feature] Rotator can write GitHub Actions secrets #44
Conversation
Codecov Report
@@ Coverage Diff @@
## master #44 +/- ##
==========================================
- Coverage 27.51% 24.10% -3.41%
==========================================
Files 13 15 +2
Lines 418 477 +59
==========================================
Hits 115 115
- Misses 292 351 +59
Partials 11 11
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #44 +/- ##
=========================================
- Coverage 27.51% 24.1% -3.41%
=========================================
Files 13 15 +2
Lines 418 477 +59
=========================================
Hits 115 115
- Misses 292 351 +59
Partials 11 11
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved once tests are added
KindBuf Kind = "Buffer" | ||
KindTravisCi Kind = "TravisCI" | ||
KindCircleCi Kind = "CircleCI" | ||
KindGithubActionsSecret Kind = "GitHubActionsSecret" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing marshalling in the MarshalYAML below
s.repo, | ||
encryptedSecret, | ||
) | ||
return errors.Wrap(err, "could not write encrypted secret to GitHub") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always returns an error, even on success.
Add a new rotator sink to write github action secrets
Test Plan
Ran local test. TODO: unit tests
References
https://developer.github.com/v3/actions/secrets/