Skip to content

Commit 4fca4b6

Browse files
committed
JS: use shared YAML library
1 parent f0b5f9c commit 4fca4b6

File tree

5 files changed

+47
-503
lines changed

5 files changed

+47
-503
lines changed

javascript/ql/lib/qlpack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ dependencies:
99
codeql/regex: ${workspace}
1010
codeql/tutorial: ${workspace}
1111
codeql/util: ${workspace}
12+
codeql/yaml: ${workspace}
1213
dataExtensions:
1314
- semmle/javascript/frameworks/**/model.yml

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module Actions {
3232
string getName() { result = this.lookup("name").(YamlString).getValue() }
3333

3434
/** Gets the name of the workflow file. */
35-
string getFileName() { result = this.getFile().getBaseName() }
35+
string getFileName() { result = this.getLocation().getFile().getBaseName() }
3636

3737
/** Gets the `on:` in this workflow. */
3838
On getOn() { result = this.lookup("on") }

0 commit comments

Comments
 (0)