maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
8 additions and
0 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/RandomizeAuthServerPassPhraseStep.cs
|
|
@ -15,6 +15,14 @@ public class RandomizeAuthServerPassPhraseStep : ProjectBuildPipelineStep |
|
|
{ |
|
|
{ |
|
|
var files = context.Files |
|
|
var files = context.Files |
|
|
.Where(x => !x.IsDirectory) |
|
|
.Where(x => !x.IsDirectory) |
|
|
|
|
|
.Where(x => x.Name.EndsWith(".cs") || |
|
|
|
|
|
x.Name.EndsWith(".json") || |
|
|
|
|
|
x.Name.EndsWith(".yml") || |
|
|
|
|
|
x.Name.EndsWith(".yaml") || |
|
|
|
|
|
x.Name.EndsWith(".md") || |
|
|
|
|
|
x.Name.EndsWith(".ps1") || |
|
|
|
|
|
x.Name.EndsWith(".sh") || |
|
|
|
|
|
x.Name.Contains("Dockerfile")) |
|
|
.Where(x => x.Content.IndexOf(DefaultPassPhrase, StringComparison.InvariantCultureIgnoreCase) >= 0) |
|
|
.Where(x => x.Content.IndexOf(DefaultPassPhrase, StringComparison.InvariantCultureIgnoreCase) >= 0) |
|
|
.ToList(); |
|
|
.ToList(); |
|
|
|
|
|
|
|
|
|