Actions Secret
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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
Encrypted value of the secret using the GitHub public key in Base64 format.
Link copied to clipboard
Plaintext value of the secret to be encrypted
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Name of the repository
Link copied to clipboard
Name of the secret