Actions Organization Secret
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.ActionsOrganizationSecret;
import com.pulumi.github.ActionsOrganizationSecretArgs;
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) {
var exampleSecretActionsOrganizationSecret = new ActionsOrganizationSecret("exampleSecretActionsOrganizationSecret", ActionsOrganizationSecretArgs.builder()
.secretName("example_secret_name")
.visibility("private")
.plaintextValue(var_.some_secret_string())
.build());
var exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new ActionsOrganizationSecret("exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", ActionsOrganizationSecretArgs.builder()
.secretName("example_secret_name")
.visibility("private")
.encryptedValue(var_.some_encrypted_secret_string())
.build());
}
}
Content copied to clipboard
Import
This resource can be imported using an ID made up of the secret name:
$ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret test_secret test_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 secret
Link copied to clipboard
An array of repository ids that can access the organization secret.
Link copied to clipboard
Configures the access that repositories have to the organization secret. Must be one of all
, private
, selected
. selected_repository_ids
is required if set to selected
.