mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Apply suggestions from code review
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
committed by
GitHub
parent
5aa71352dc
commit
891a94c166
@@ -18,7 +18,7 @@ module Actions {
|
||||
(
|
||||
f.getRelativePath().regexpMatch("(^|.*/)\\.github/workflows/.*\\.ya?ml$")
|
||||
or
|
||||
f.getBaseName() = "action.yml"
|
||||
f.getBaseName() = ["action.yml", "action.yaml"]
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -30,7 +30,7 @@ module Actions {
|
||||
*/
|
||||
class CompositeAction extends Node, YamlDocument, YamlMapping {
|
||||
CompositeAction() {
|
||||
this.getFile().getBaseName() = "action.yml" and
|
||||
this.getFile().getBaseName() = ["action.yml", "action.yaml"] and
|
||||
this.lookup("runs").(YamlMapping).lookup("using").(YamlScalar).getValue() = "composite"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user