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
Description: "Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site.",
82
82
},
83
+
"https_enforced": {
84
+
Type: schema.TypeBool,
85
+
Computed: true,
86
+
Description: "Whether the rendered GitHub Pages site will only be served over HTTPS.",
87
+
},
83
88
},
84
89
}
85
90
}
@@ -127,6 +132,9 @@ func dataSourceGithubRepositoryPagesRead(ctx context.Context, d *schema.Resource
Description: "Whether the GitHub Pages site is publicly visible. If set to `true`, the site is accessible to anyone on the internet. If set to `false`, the site will only be accessible to users who have at least `read` access to the repository that published the site.",
105
105
},
106
+
"https_enforced": {
107
+
Type: schema.TypeBool,
108
+
Optional: true,
109
+
Computed: true,
110
+
RequiredWith: []string{"cname"},
111
+
Description: "Whether the rendered GitHub Pages site will only be served over HTTPS. Requires 'cname' to be set.",
@@ -168,6 +175,15 @@ func resourceGithubRepositoryPagesCreate(ctx context.Context, d *schema.Resource
168
175
returndiag.FromErr(err)
169
176
}
170
177
}
178
+
httpsEnforced, httpsEnforcedExists:=d.GetOkExists("https_enforced") // nolint:staticcheck // SA1019: There is no better alternative for checking if boolean value is set
@@ -103,6 +104,8 @@ The following arguments are supported:
103
104
104
105
-`public` - (Optional) Whether the GitHub Pages site is public.
105
106
107
+
-`https_enforced` - (Optional) Whether HTTPS is enforced for the GitHub Pages site. GitHub Pages sites serve over HTTPS by default; this setting only applies when a custom domain (`cname`) is configured. Requires `cname` to be set.
0 commit comments