Merge pull request #1129 from actions/nickfyson/validate-code-scanning
start validating code-scanning workflows
This commit is contained in:
@@ -49,7 +49,7 @@ async function checkWorkflows(folders: string[]): Promise<WorkflowWithErrors[]>
|
||||
});
|
||||
|
||||
for (const e of dir) {
|
||||
if (e.isFile()) {
|
||||
if (e.isFile() && [".yml", ".yaml"].includes(extname(e.name))) {
|
||||
const fileType = basename(e.name, extname(e.name))
|
||||
|
||||
const workflowFilePath = join(folder, e.name);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"folders": [
|
||||
"../../ci",
|
||||
"../../automation",
|
||||
"../../deployments"
|
||||
"../../deployments",
|
||||
"../../code-scanning"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user