-
Notifications
You must be signed in to change notification settings - Fork 936
Open
Labels
ProviderStatus: PinnedA way to keep old or long lived issues aroundA way to keep old or long lived issues aroundType: DocumentationImprovements or additions to documentationImprovements or additions to documentationr/actions_secret
Description
Affected Resource(s)
- github_actions_secret
github_actions_secret page does not contain any documentation on how to produce the encrypted_value.
There are two alternatives on how to create encrypted_value from the plaintext value:
- One using
TF_LOG=debug terraform applyto observe what"encrypted_secret"value is sent as JSON in the GitHub API call, as @jcudit outlined in a PR Added encrypted_value to Actions + Organizations's secrets #807 comment, although this is missing instructions necessary to avoid storing theplaintext_secretin a remote backend. - Make an API call to
https://api.github.com/repos/ORG/REPO/actions/secrets/public-keyand write a helper script using the example code in GitHub reference for "Create or update a repository secret".
Both of these are too cumbersome in my opinion.
But at the very least, a way to do this should be documented on github_actions_secret documentation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ProviderStatus: PinnedA way to keep old or long lived issues aroundA way to keep old or long lived issues aroundType: DocumentationImprovements or additions to documentationImprovements or additions to documentationr/actions_secret
Type
Projects
Status
Backlog