ActionsSecret

class ActionsSecret : KotlinCustomResource

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.

Properties

Link copied to clipboard
val createdAt: Output<String>

Date of actions_secret creation.

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

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

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

Plaintext value of the secret to be encrypted

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val repository: Output<String>

Name of the repository

Link copied to clipboard
val secretName: Output<String>

Name of the secret

Link copied to clipboard
val updatedAt: Output<String>

Date of actions_secret update.

Link copied to clipboard
val urn: Output<String>