mirror of
https://github.com/github/codeql-action
synced 2026-05-23 20:00:54 +03:00
Merge pull request #5 from github/aibaars-patch-1
Fix parsing of path-ignore field
This commit is contained in:
Generated
+1
-1
@@ -84,7 +84,7 @@ function initConfig() {
|
||||
});
|
||||
}
|
||||
const pathsIgnore = parsedYAML['paths-ignore'];
|
||||
if (pathsIgnore && queries instanceof Array) {
|
||||
if (pathsIgnore && pathsIgnore instanceof Array) {
|
||||
pathsIgnore.forEach(path => {
|
||||
if (typeof path === "string") {
|
||||
config.pathsIgnore.push(path);
|
||||
|
||||
+1
-1
@@ -91,7 +91,7 @@ function initConfig(): Config {
|
||||
}
|
||||
|
||||
const pathsIgnore = parsedYAML['paths-ignore'];
|
||||
if (pathsIgnore && queries instanceof Array) {
|
||||
if (pathsIgnore && pathsIgnore instanceof Array) {
|
||||
pathsIgnore.forEach(path => {
|
||||
if (typeof path === "string") {
|
||||
config.pathsIgnore.push(path);
|
||||
|
||||
Reference in New Issue
Block a user