Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Pulumi.github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ config:
secure: AAABAMM1RkgKDbPBHmuZdx+1ciCJTzDRSd/o2cm0QUPmo4jd1AICHf2qe/Vpcjvid+kFh3DuHiS9cZOgZKuG6G1NTi0l+7apL0jPZ7d+Nl1kdZqKLUWH/0zNPoZq9ng53Tr9LCZAxsa86/Jq5b9ijJXaiBxJ0jMEqGciMmBNTGtqwiqnlGrUmMqdEpE=
holochain:threefoldTfChainWalletMnemonic:
secure: AAABAHnzklqdwRGuZktNgbwY8fqwFMl5DM8jrN7AuFz6NXAvaJBukfoUvYFoq5YQObo6eaooQbInhK6LAw8mulpGjhzCQmUsFLLlIHrShD28k9iKaKnfpkiE/SRzzuVSoJAdKxS0tg6fdpPIMAc=
holochain:threefoldHubApiToken:
secure: AAABACRJURtkQbAnZmbb7tYn3e70n48fyccTJ3/4op0AmLxrkO4doFfP2RqjasYq6BGKRn4KxLA65MDC73PihYHh91f47hzRNXvXcPNVNTXxLuD6DP2nZwEyrcqtWjQSflW3TaiF4dsG4mD5mB96/WzS3HpbeSN+awfwOUHJl1GYGDEmhbLynbPjEnwIYVsp3KRj7oHwuZqVlQzWL+dKOA==
14 changes: 14 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,9 @@ func main() {
if err = AddCachixAuthTokenSecret(ctx, conf, "wind-tunnel-runner"); err != nil {
return err
}
if err = AddThreefoldHubApiToken(ctx, conf, "wind-tunnel-runner"); err != nil {
return err
}

//
// must_future
Expand Down Expand Up @@ -1809,6 +1812,17 @@ func AddThreefoldTfChainWalletMnemonic(ctx *pulumi.Context, cfg *config.Config,
return err
}

func AddThreefoldHubApiToken(ctx *pulumi.Context, cfg *config.Config, repository string) error {
_, err := github.NewActionsSecret(ctx, fmt.Sprintf("%s-threefold-hub-api-token", repository), &github.ActionsSecretArgs{
Repository: pulumi.String(repository),
SecretName: pulumi.String("THREEFOLD_HUB_API_TOKEN"),
// The GitHub API only accepts encrypted values. This will be encrypted by the provider before being sent.
PlaintextValue: cfg.RequireSecret("threefoldHubApiToken"),
}, pulumi.DeleteBeforeReplace(true), pulumi.IgnoreChanges([]string{"encryptedValue"}))

return err
}

// RepositoryLabel represents a standard label that can be applied to repositories.
type RepositoryLabel string

Expand Down
Loading