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: "The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: 'all', 'none', or 'selected'.",
Description: "Sets the actions that are allowed in an organization. Only available when 'allowed_actions' = 'selected'",
37
40
Elem: &schema.Resource{
38
41
Schema: map[string]*schema.Schema{
39
42
"github_owned_allowed": {
40
-
Type: schema.TypeBool,
41
-
Required: true,
43
+
Type: schema.TypeBool,
44
+
Required: true,
45
+
Description: "Whether GitHub-owned actions are allowed in the organization.",
42
46
},
43
47
"patterns_allowed": {
44
-
Type: schema.TypeSet,
45
-
Optional: true,
46
-
Elem: &schema.Schema{Type: schema.TypeString},
47
-
Set: schema.HashString,
48
+
Type: schema.TypeSet,
49
+
Optional: true,
50
+
Description: "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, 'monalisa/octocat@', 'monalisa/octocat@v2', 'monalisa/'.",
51
+
Elem: &schema.Schema{Type: schema.TypeString},
52
+
Set: schema.HashString,
48
53
},
49
54
"verified_allowed": {
50
-
Type: schema.TypeBool,
51
-
Optional: true,
55
+
Type: schema.TypeBool,
56
+
Optional: true,
57
+
Description: "Whether actions in GitHub Marketplace from verified creators are allowed. Set to 'true' to allow all GitHub Marketplace actions by verified creators.",
52
58
},
53
59
},
54
60
},
55
61
},
56
62
"enabled_repositories_config": {
57
-
Type: schema.TypeList,
58
-
Optional: true,
59
-
MaxItems: 1,
63
+
Type: schema.TypeList,
64
+
Optional: true,
65
+
MaxItems: 1,
66
+
Description: "Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when 'enabled_repositories' = 'selected'.",
60
67
Elem: &schema.Resource{
61
68
Schema: map[string]*schema.Schema{
62
69
"repository_ids": {
63
-
Type: schema.TypeSet,
64
-
Elem: &schema.Schema{Type: schema.TypeInt},
65
-
Required: true,
70
+
Type: schema.TypeSet,
71
+
Description: "List of repository IDs to enable for GitHub Actions.",
Description: "Configures the access that repositories have to the organization secret. Must be one of 'all', 'private', or 'selected'. 'selected_repository_ids' is required if set to 'selected'.",
55
59
},
56
60
"selected_repository_ids": {
57
61
Type: schema.TypeSet,
58
62
Elem: &schema.Schema{
59
63
Type: schema.TypeInt,
60
64
},
61
-
Set: schema.HashInt,
62
-
Optional: true,
65
+
Set: schema.HashInt,
66
+
Optional: true,
67
+
Description: "An array of repository ids that can access the organization secret.",
63
68
},
64
69
"created_at": {
65
-
Type: schema.TypeString,
66
-
Computed: true,
70
+
Type: schema.TypeString,
71
+
Computed: true,
72
+
Description: "Date of 'actions_secret' creation.",
Description: "Where the actions or reusable workflows of the repository may be used. Possible values are 'none', 'user', 'organization', or 'enterprise'.",
Description: "Sets the actions that are allowed in an repository. Only available when 'allowed_actions' = 'selected'. ",
33
35
Elem: &schema.Resource{
34
36
Schema: map[string]*schema.Schema{
35
37
"github_owned_allowed": {
36
-
Type: schema.TypeBool,
37
-
Required: true,
38
+
Type: schema.TypeBool,
39
+
Required: true,
40
+
Description: "Whether GitHub-owned actions are allowed in the repository.",
38
41
},
39
42
"patterns_allowed": {
40
-
Type: schema.TypeSet,
41
-
Optional: true,
42
-
Elem: &schema.Schema{Type: schema.TypeString},
43
-
Set: schema.HashString,
43
+
Type: schema.TypeSet,
44
+
Optional: true,
45
+
Description: "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, 'monalisa/octocat@', 'monalisa/octocat@v2', 'monalisa/'.",
46
+
Elem: &schema.Schema{Type: schema.TypeString},
47
+
Set: schema.HashString,
44
48
},
45
49
"verified_allowed": {
46
-
Type: schema.TypeBool,
47
-
Optional: true,
50
+
Type: schema.TypeBool,
51
+
Optional: true,
52
+
Description: "Whether actions in GitHub Marketplace from verified creators are allowed. Set to 'true' to allow all GitHub Marketplace actions by verified creators.",
48
53
},
49
54
},
50
55
},
51
56
},
52
57
"enabled": {
53
-
Type: schema.TypeBool,
54
-
Optional: true,
55
-
Default: true,
58
+
Type: schema.TypeBool,
59
+
Optional: true,
60
+
Default: true,
61
+
Description: "Should GitHub actions be enabled on this repository.",
0 commit comments