File tree Expand file tree Collapse file tree
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import javascript
1010 * See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions.
1111 */
1212module Actions {
13- /** A YAML node in a GitHub Actions workflow or custom action file. */
13+ /** A YAML node in a GitHub Actions workflow or a custom action file. */
1414 private class Node extends YamlNode {
1515 Node ( ) {
1616 exists ( File f |
@@ -235,10 +235,10 @@ module Actions {
235235 int getIndex ( ) { result = index }
236236
237237 /** Gets the `job` this step belongs to. The step may belong to a `job` in a workflow or `runs` in a custom action. */
238- Job getJob ( ) { result = parent . ( Job ) }
238+ Job getJob ( ) { result = parent }
239239
240240 /** Gets the `runs` this step belongs to. The step may belong to a `job` in a workflow or `runs` in a custom action. */
241- Runs getRuns ( ) { result = parent . ( Runs ) }
241+ Runs getRuns ( ) { result = parent }
242242
243243 /** Gets the value of the `uses` field in this step, if any. */
244244 Uses getUses ( ) { result .getStep ( ) = this }
You can’t perform that action at this time.
0 commit comments