File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ module Actions {
28
28
/** Gets the `jobs` mapping from job IDs to job definitions in this workflow. */
29
29
YAMLMapping getJobs ( ) { result = this .lookup ( "jobs" ) }
30
30
31
+ /** Gets the name of the workflow. */
32
+ string getName ( ) { result = this .lookup ( "name" ) .( YAMLString ) .getValue ( ) }
33
+
31
34
/** Gets the name of the workflow file. */
32
35
string getFileName ( ) { result = this .getFile ( ) .getBaseName ( ) }
33
36
@@ -129,6 +132,9 @@ module Actions {
129
132
130
133
/** Gets the value of the `if` field in this step, if any. */
131
134
StepIf getIf ( ) { result .getStep ( ) = this }
135
+
136
+ /** Gets the ID of this step, if any. */
137
+ string getId ( ) { result = this .lookup ( "id" ) .( YAMLString ) .getValue ( ) }
132
138
}
133
139
134
140
/**
You can’t perform that action at this time.
0 commit comments