Fix deprecation warnings
This commit is contained in:
parent
86ead5e019
commit
125ff5530c
1 changed files with 6 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
* must be defined in an identical way to avoid confusion for the user.
|
* must be defined in an identical way to avoid confusion for the user.
|
||||||
* This also makes writing queries like required-action-input.ql easier.
|
* This also makes writing queries like required-action-input.ql easier.
|
||||||
* @kind problem
|
* @kind problem
|
||||||
* @problem.severity error
|
* @severity error
|
||||||
* @id javascript/codeql-action/inconsistent-action-input
|
* @id javascript/codeql-action/inconsistent-action-input
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -25,19 +25,19 @@ class ActionDeclaration extends File {
|
||||||
result = getRelativePath().regexpCapture("(.*)/action.yml", 1)
|
result = getRelativePath().regexpCapture("(.*)/action.yml", 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
YAMLDocument getRootNode() {
|
YamlDocument getRootNode() {
|
||||||
result.getFile() = this
|
result.getFile() = this
|
||||||
}
|
}
|
||||||
|
|
||||||
YAMLValue getInput(string inputName) {
|
YamlValue getInput(string inputName) {
|
||||||
result = getRootNode().(YAMLMapping).lookup("inputs").(YAMLMapping).lookup(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()
|
x.getTag() != y.getTag()
|
||||||
or
|
or
|
||||||
x.(YAMLScalar).getValue() != y.(YAMLScalar).getValue()
|
x.(YamlScalar).getValue() != y.(YamlScalar).getValue()
|
||||||
or
|
or
|
||||||
x.getNumChild() != y.getNumChild()
|
x.getNumChild() != y.getNumChild()
|
||||||
or
|
or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue