Skip to content

Commit 125ff55

Browse files
committed
Fix deprecation warnings
1 parent 86ead5e commit 125ff55

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

queries/inconsistent-action-input.ql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* must be defined in an identical way to avoid confusion for the user.
55
* This also makes writing queries like required-action-input.ql easier.
66
* @kind problem
7-
* @problem.severity error
7+
* @severity error
88
* @id javascript/codeql-action/inconsistent-action-input
99
*/
1010

@@ -25,19 +25,19 @@ class ActionDeclaration extends File {
2525
result = getRelativePath().regexpCapture("(.*)/action.yml", 1)
2626
}
2727

28-
YAMLDocument getRootNode() {
28+
YamlDocument getRootNode() {
2929
result.getFile() = this
3030
}
3131

32-
YAMLValue getInput(string inputName) {
33-
result = getRootNode().(YAMLMapping).lookup("inputs").(YAMLMapping).lookup(inputName)
32+
YamlValue getInput(string inputName) {
33+
result = getRootNode().(YamlMapping).lookup("inputs").(YamlMapping).lookup(inputName)
3434
}
3535
}
3636

37-
predicate areNotEquivalent(YAMLValue x, YAMLValue y) {
37+
predicate areNotEquivalent(YamlValue x, YamlValue y) {
3838
x.getTag() != y.getTag()
3939
or
40-
x.(YAMLScalar).getValue() != y.(YAMLScalar).getValue()
40+
x.(YamlScalar).getValue() != y.(YamlScalar).getValue()
4141
or
4242
x.getNumChild() != y.getNumChild()
4343
or

0 commit comments

Comments
 (0)