File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments