Skip to content

Commit 891a94c

Browse files
JarLobasgerf
andauthored
Apply suggestions from code review
Co-authored-by: Asger F <[email protected]>
1 parent 5aa7135 commit 891a94c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module Actions {
1818
(
1919
f.getRelativePath().regexpMatch("(^|.*/)\\.github/workflows/.*\\.ya?ml$")
2020
or
21-
f.getBaseName() = "action.yml"
21+
f.getBaseName() = ["action.yml", "action.yaml"]
2222
)
2323
)
2424
}
@@ -30,7 +30,7 @@ module Actions {
3030
*/
3131
class CompositeAction extends Node, YamlDocument, YamlMapping {
3232
CompositeAction() {
33-
this.getFile().getBaseName() = "action.yml" and
33+
this.getFile().getBaseName() = ["action.yml", "action.yaml"] and
3434
this.lookup("runs").(YamlMapping).lookup("using").(YamlScalar).getValue() = "composite"
3535
}
3636

0 commit comments

Comments
 (0)