31 references to PublicTextPatch
Infrastructure.Tests (31)
WorkflowScripts\AutoSecWorkflowTests.cs (31)
1133["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch },
1179["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("extension/package-lock.json", alias, StringComparison.Ordinal),
1202["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("extension/package-lock.json", alias, StringComparison.Ordinal),
1235var patch = PublicTextPatch.Replace("\r\n", "\n");
1385["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.ReplaceLineEndings("\n") },
1480["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
1503["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
1734["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
1753["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
1777["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
1815["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
1839var patch = PublicTextPatch.Replace("\r\n", "\n")
2539var patch = PublicTextPatch.Replace("\r\n", "\n")
2577var patch = PublicTextPatch.Replace("\r\n", "\n").Replace("\n-- \n", $"\n{dependencyDiff}\n-- \n", StringComparison.Ordinal);
2619var patch = PublicTextPatch.Replace("\r\n", "\n");
2660var patch = PublicTextPatch.Replace("\r\n", "\n").Replace("@@ -3,3 +3,3 @@", "@@ -3,3 +3,3 @@ \"node_modules/lodash\": {", StringComparison.Ordinal);
2686["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
2687["workFiles"] = new JsonObject { [name] = patch ? PublicTextPatch.Replace("\r\n", "\n") : "alert 42: prototype pollution" },
2720var patch = PublicTextPatch.Replace("\r\n", "\n");
2760var patch = PublicTextPatch.Replace("\r\n", "\n").Replace("From: ", "X-GH-AW-Base-Commit: alert 42: prototype pollution\nFrom: ", StringComparison.Ordinal);
2864var patch = PublicTextPatch.Replace("\r\n", "\n").Replace("-- \n",
2905["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
2928["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
2977var patch = PublicTextPatch.Replace("\r\n", "\n").Replace("From: ", $"X-GH-AW-Base-Commit: {branchSha}\nFrom: ", StringComparison.Ordinal);
3001var patch = PublicTextPatch.Replace("\r\n", "\n")
3035["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
3066["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
3097["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
3135["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },
3168var patch = PublicTextPatch.Replace("\r\n", "\n");
3242["patchFiles"] = new JsonObject { ["aw-auto-sec-security-updates.patch"] = PublicTextPatch.Replace("\r\n", "\n") },