Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bfe9041 + dcc76dd commit 018a76bCopy full SHA for 018a76b
1 file changed
javascript/ql/lib/semmle/javascript/Actions.qll
@@ -28,6 +28,9 @@ module Actions {
28
/** Gets the `jobs` mapping from job IDs to job definitions in this workflow. */
29
YAMLMapping getJobs() { result = this.lookup("jobs") }
30
31
+ /** Gets the name of the workflow. */
32
+ string getName() { result = this.lookup("name").(YAMLString).getValue() }
33
+
34
/** Gets the name of the workflow file. */
35
string getFileName() { result = this.getFile().getBaseName() }
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() }
138
}
139
140
/**
0 commit comments