We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4209c8d commit cf3fa6eCopy full SHA for cf3fa6e
1 file changed
github/util_ruleset_validation.go
@@ -94,6 +94,9 @@ func validateRules(ctx context.Context, d *schema.ResourceDiff, allowedRules []g
94
if !exists {
95
continue
96
}
97
+ if ruleName == "required_code_scanning" {
98
+ ruleName = string(github.RulesetRuleTypeCodeScanning) // This is one of the few rules which is not mapped to the same name in the API.
99
+ }
100
switch ruleValue := ruleValue.(type) {
101
case []any:
102
if len(ruleValue) == 0 {
0 commit comments