You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/actions_environment_secret.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ The following arguments are supported:
90
90
91
91
## Import
92
92
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 `:`.
94
94
95
95
~> **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.
@@ -93,7 +98,7 @@ The following additional attributes are exported:
93
98
94
99
## Import
95
100
96
-
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.
returnnil, fmt.Errorf("invalid ID specified. Supplied ID must be written as <repository>:<file path>: (when branch is default) or <repository>:<file path>:<branch>. %w", err)
439
439
}
440
440
441
+
filePath:=unescapeIDPart(filePathPart)
442
+
441
443
client:=meta.(*Owner).v3client
442
444
owner:=meta.(*Owner).name
443
445
@@ -468,7 +470,7 @@ func resourceGithubRepositoryFileImport(ctx context.Context, d *schema.ResourceD
0 commit comments