Skip to content

Commit fb7b6f6

Browse files
committed
Update documentation to be clear about how to escape :
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 510651d commit fb7b6f6

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/resources/actions_environment_secret.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The following arguments are supported:
9090

9191
## Import
9292

93-
This resource can be imported using an ID made of the repository name, environment name (URL escaped), and secret name all separated by a `:`.
93+
This resource can be imported using an ID made of the repository name, environment name (any `:` in the environment name need to be escaped as `??`), and secret name all separated by a `:`.
9494

9595
~> **Note**: When importing secrets, the `value`, `value_encrypted`, `encrypted_value`, or `plaintext_value` fields will not be populated in the state. You may need to ignore changes for these as a workaround if you're not planning on updating the secret through Terraform.
9696

docs/resources/repository_file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The following additional attributes are exported:
9898

9999
## Import
100100

101-
Repository files can be imported using a combination of the `repo`, `file` and `branch` or empty branch for the default branch, e.g.
101+
Repository files can be imported using a combination of the `repo`, `file path` (any `:` in the file path need to be escaped as `??`) and `branch` or empty branch for the default branch, e.g.
102102

103103
```sh
104104
terraform import github_repository_file.gitignore example:.gitignore:feature-branch

templates/resources/actions_environment_secret.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The following arguments are supported:
4848

4949
## Import
5050

51-
This resource can be imported using an ID made of the repository name, environment name (URL escaped), and secret name all separated by a `:`.
51+
This resource can be imported using an ID made of the repository name, environment name (any `:` in the environment name need to be escaped as `??`), and secret name all separated by a `:`.
5252

5353
~> **Note**: When importing secrets, the `value`, `value_encrypted`, `encrypted_value`, or `plaintext_value` fields will not be populated in the state. You may need to ignore changes for these as a workaround if you're not planning on updating the secret through Terraform.
5454

templates/resources/repository_file.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The following additional attributes are exported:
6060

6161
## Import
6262

63-
Repository files can be imported using a combination of the `repo`, `file` and `branch` or empty branch for the default branch, e.g.
63+
Repository files can be imported using a combination of the `repo`, `file path` (any `:` in the file path need to be escaped as `??`) and `branch` or empty branch for the default branch, e.g.
6464

6565
```sh
6666
terraform import github_repository_file.gitignore example:.gitignore:feature-branch

0 commit comments

Comments
 (0)