File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
* must be defined in an identical way to avoid confusion for the user.
5
5
* This also makes writing queries like required-action-input.ql easier.
6
6
* @kind problem
7
- * @problem. severity error
7
+ * @severity error
8
8
* @id javascript/codeql-action/inconsistent-action-input
9
9
*/
10
10
@@ -25,19 +25,19 @@ class ActionDeclaration extends File {
25
25
result = getRelativePath ( ) .regexpCapture ( "(.*)/action.yml" , 1 )
26
26
}
27
27
28
- YAMLDocument getRootNode ( ) {
28
+ YamlDocument getRootNode ( ) {
29
29
result .getFile ( ) = this
30
30
}
31
31
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 )
34
34
}
35
35
}
36
36
37
- predicate areNotEquivalent ( YAMLValue x , YAMLValue y ) {
37
+ predicate areNotEquivalent ( YamlValue x , YamlValue y ) {
38
38
x .getTag ( ) != y .getTag ( )
39
39
or
40
- x .( YAMLScalar ) .getValue ( ) != y .( YAMLScalar ) .getValue ( )
40
+ x .( YamlScalar ) .getValue ( ) != y .( YamlScalar ) .getValue ( )
41
41
or
42
42
x .getNumChild ( ) != y .getNumChild ( )
43
43
or
You can’t perform that action at this time.
0 commit comments