ActionsSecretArgs

data class ActionsSecretArgs(val encryptedValue: Output<String>? = null, val plaintextValue: Output<String>? = null, val repository: Output<String>? = null, val secretName: Output<String>? = null) : ConvertibleToJava<ActionsSecretArgs>

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.GithubFunctions;
import com.pulumi.github.inputs.GetActionsPublicKeyArgs;
import com.pulumi.github.ActionsSecret;
import com.pulumi.github.ActionsSecretArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var examplePublicKey = GithubFunctions.getActionsPublicKey(GetActionsPublicKeyArgs.builder()
.repository("example_repository")
.build());
var exampleSecretActionsSecret = new ActionsSecret("exampleSecretActionsSecret", ActionsSecretArgs.builder()
.repository("example_repository")
.secretName("example_secret_name")
.plaintextValue(var_.some_secret_string())
.build());
var exampleSecretIndex_actionsSecretActionsSecret = new ActionsSecret("exampleSecretIndex/actionsSecretActionsSecret", ActionsSecretArgs.builder()
.repository("example_repository")
.secretName("example_secret_name")
.encryptedValue(var_.some_encrypted_secret_string())
.build());
}
}

Import

This resource can be imported using an ID made up of the repository and secret_name:

$ pulumi import github:index/actionsSecret:ActionsSecret example_secret repository/secret_name

NOTEthe implementation is limited in that it won't fetch the value of the plaintext_value or encrypted_value fields when importing. You may need to ignore changes for these as a workaround.

Constructors

Link copied to clipboard
constructor(encryptedValue: Output<String>? = null, plaintextValue: Output<String>? = null, repository: Output<String>? = null, secretName: Output<String>? = null)

Properties

Link copied to clipboard
val encryptedValue: Output<String>? = null

Encrypted value of the secret using the GitHub public key in Base64 format.

Link copied to clipboard
val plaintextValue: Output<String>? = null

Plaintext value of the secret to be encrypted

Link copied to clipboard
val repository: Output<String>? = null

Name of the repository

Link copied to clipboard
val secretName: Output<String>? = null

Name of the secret

Functions

Link copied to clipboard
open override fun toJava(): ActionsSecretArgs