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 {
2828 /** Gets the `jobs` mapping from job IDs to job definitions in this workflow. */
2929 YAMLMapping getJobs ( ) { result = this .lookup ( "jobs" ) }
3030
31+ /** Gets the name of the workflow. */
32+ string getName ( ) { result = this .lookup ( "name" ) .( YAMLString ) .getValue ( ) }
33+
3134 /** Gets the name of the workflow file. */
3235 string getFileName ( ) { result = this .getFile ( ) .getBaseName ( ) }
3336
@@ -129,6 +132,9 @@ module Actions {
129132
130133 /** Gets the value of the `if` field in this step, if any. */
131134 StepIf getIf ( ) { result .getStep ( ) = this }
135+
136+ /** Gets the ID of this step, if any. */
137+ string getId ( ) { result = this .lookup ( "id" ) .( YAMLString ) .getValue ( ) }
132138 }
133139
134140 /**
You can’t perform that action at this time.
0 commit comments