restrict hashFiles to basic globbing and globstar (#150)

This commit is contained in:
eric sciple
2019-10-28 11:52:22 -04:00
committed by GitHub
parent 82e9857d4f
commit ccca13ac07

View File

@@ -83,11 +83,15 @@ namespace GitHub.DistributedTask.Expressions2.Sdk.Functions
}
}
// Only support basic globbing (* ? and []) and globstar (**)
private static readonly Options s_minimatchOptions = new Options
{
Dot = true,
NoBrace = true,
NoCase = Environment.OSVersion.Platform != PlatformID.Unix && Environment.OSVersion.Platform != PlatformID.MacOSX
NoCase = Environment.OSVersion.Platform != PlatformID.Unix && Environment.OSVersion.Platform != PlatformID.MacOSX,
NoComment = true,
NoExt = true,
NoNegate = true,
};
}
}