Skip to content

Commit 3745ccc

Browse files
committed
Fix warnings
1 parent af83d8a commit 3745ccc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/lib/semmle/javascript/Actions.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import javascript
1010
* See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions.
1111
*/
1212
module 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 }

0 commit comments

Comments
 (0)