зеркало из https://github.com/github/codeql.git
Apply suggestions from code review
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
Родитель
5aa71352dc
Коммит
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"
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче