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
"name may only contain alphanumeric characters, '.', '-', and '_'",
47
48
),
48
-
),
49
+
)),
49
50
Description: "Name of the hosted runner. Must be between 1 and 64 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.",
"size must be in the format '<number>-core' (e.g., '4-core', '8-core')",
96
-
),
97
+
)),
97
98
Description: "Machine size for the hosted runner (e.g., '4-core', '8-core'). This determines the CPU, memory, and storage resources allocated to the runner. Can be updated to scale the runner. To list available sizes, use the GitHub API: GET /enterprises/{enterprise}/actions/hosted-runners/machine-sizes.",
Description: "Maximum number of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit costs. If not specified, GitHub will use a default limit.",
110
111
},
111
112
"public_ip_enabled": {
@@ -207,7 +208,6 @@ func resourceGithubEnterpriseActionsHostedRunnerCreate(ctx context.Context, d *s
207
208
client:=meta.(*Owner).v3client
208
209
enterpriseSlug:=d.Get("enterprise_slug").(string)
209
210
210
-
// Build request using SDK struct
211
211
request:= github.CreateHostedRunnerRequest{
212
212
Name: d.Get("name").(string),
213
213
Size: d.Get("size").(string),
@@ -220,7 +220,7 @@ func resourceGithubEnterpriseActionsHostedRunnerCreate(ctx context.Context, d *s
220
220
221
221
ifv, ok:=d.GetOk("maximum_runners"); ok {
222
222
maxRunners:=int64(v.(int))
223
-
request.MaximumRunners=new(maxRunners)
223
+
request.MaximumRunners=&maxRunners
224
224
}
225
225
226
226
ifv, ok:=d.GetOk("public_ip_enabled"); ok {
@@ -233,23 +233,16 @@ func resourceGithubEnterpriseActionsHostedRunnerCreate(ctx context.Context, d *s
0 commit comments