diff --git a/queries/inconsistent-action-input.ql b/queries/inconsistent-action-input.ql index d1a8cec85..f7f5d37d2 100644 --- a/queries/inconsistent-action-input.ql +++ b/queries/inconsistent-action-input.ql @@ -4,7 +4,7 @@ * must be defined in an identical way to avoid confusion for the user. * This also makes writing queries like required-action-input.ql easier. * @kind problem - * @problem.severity error + * @severity error * @id javascript/codeql-action/inconsistent-action-input */ @@ -25,19 +25,19 @@ class ActionDeclaration extends File { result = getRelativePath().regexpCapture("(.*)/action.yml", 1) } - YAMLDocument getRootNode() { + YamlDocument getRootNode() { result.getFile() = this } - YAMLValue getInput(string inputName) { - result = getRootNode().(YAMLMapping).lookup("inputs").(YAMLMapping).lookup(inputName) + YamlValue getInput(string inputName) { + result = getRootNode().(YamlMapping).lookup("inputs").(YamlMapping).lookup(inputName) } } -predicate areNotEquivalent(YAMLValue x, YAMLValue y) { +predicate areNotEquivalent(YamlValue x, YamlValue y) { x.getTag() != y.getTag() or - x.(YAMLScalar).getValue() != y.(YAMLScalar).getValue() + x.(YamlScalar).getValue() != y.(YamlScalar).getValue() or x.getNumChild() != y.getNumChild() or