diff --git a/fuzz/check.go b/fuzz/check.go index b6d5badf6..a182e47f2 100644 --- a/fuzz/check.go +++ b/fuzz/check.go @@ -24,7 +24,7 @@ func FuzzCheck(data []byte) int { actionlint.NewRuleMatrix(), actionlint.NewRuleCredentials(), actionlint.NewRuleShellName(), - actionlint.NewRuleRunnerLabel([]string{}), + actionlint.NewRuleRunnerLabel(), actionlint.NewRuleEvents(), actionlint.NewRuleGlob(), actionlint.NewRuleJobNeeds(), @@ -32,6 +32,10 @@ func FuzzCheck(data []byte) int { actionlint.NewRuleEnvVar(), actionlint.NewRuleID(), actionlint.NewRuleExpression(ac, wc), + actionlint.NewRuleWorkflowCall("test.yaml", wc), + actionlint.NewRulePermissions(), + actionlint.NewRuleDeprecatedCommands(), + actionlint.NewRuleIfCond(), } v := actionlint.NewVisitor() diff --git a/fuzz/expr.go b/fuzz/expr.go index 0d6ce3f3b..ef9870264 100644 --- a/fuzz/expr.go +++ b/fuzz/expr.go @@ -20,7 +20,7 @@ func FuzzExprParse(data []byte) int { return 0 } - c := actionlint.NewExprSemanticsChecker(true) + c := actionlint.NewExprSemanticsChecker(true, nil) c.Check(e) return 1 diff --git a/fuzz/parse.go b/fuzz/parse.go index f8d31d4fe..2e44609b8 100644 --- a/fuzz/parse.go +++ b/fuzz/parse.go @@ -8,6 +8,7 @@ import ( ) func canParseByGoYAML(data []byte) (ret bool) { + ret = true defer func() { if err := recover(); err != nil { ret = false @@ -15,7 +16,7 @@ func canParseByGoYAML(data []byte) (ret bool) { }() var n yaml.Node yaml.Unmarshal(data, &n) - return true + return } func FuzzParse(data []byte) int {