@preship/secrets 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -667,6 +667,10 @@ async function scanSecrets(projectPath, config = {}) {
|
|
|
667
667
|
let filesScanned = 0;
|
|
668
668
|
for (const relativePath of files) {
|
|
669
669
|
const absolutePath = path2.join(projectPath, relativePath);
|
|
670
|
+
const basename2 = path2.basename(relativePath);
|
|
671
|
+
if (isEnvTemplateFile(basename2)) {
|
|
672
|
+
continue;
|
|
673
|
+
}
|
|
670
674
|
let content;
|
|
671
675
|
try {
|
|
672
676
|
content = fs2.readFileSync(absolutePath, "utf-8");
|
|
@@ -787,7 +791,7 @@ function isEnvironmentFile(relativePath) {
|
|
|
787
791
|
}
|
|
788
792
|
function isEnvTemplateFile(basename2) {
|
|
789
793
|
const lower = basename2.toLowerCase();
|
|
790
|
-
return lower === ".env.example" || lower === ".env.sample" || lower === ".env.template" || lower === ".env.defaults" || lower === ".env.dist" || lower.endsWith(".example") || lower.endsWith(".sample") || lower.endsWith(".template");
|
|
794
|
+
return lower === ".env.example" || lower === ".env.sample" || lower === ".env.template" || lower === ".env.defaults" || lower === ".env.dist" || lower === "env.example" || lower === "env.sample" || lower === "env.template" || lower.endsWith(".example") || lower.endsWith(".sample") || lower.endsWith(".template");
|
|
791
795
|
}
|
|
792
796
|
function isEntropyNoisyFile(relativePath) {
|
|
793
797
|
const ext = path2.extname(relativePath).toLowerCase();
|
package/package.json
CHANGED