yeknal 1.1.1 → 1.1.2
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/bin/yeknal.js +2 -7
- package/package.json +1 -1
package/bin/yeknal.js
CHANGED
|
@@ -577,17 +577,12 @@ async function checkSecretsAndEnv(projectDir, fileContents) {
|
|
|
577
577
|
".gitignore exists", "Phase 10", 3, 3, "pass",
|
|
578
578
|
".gitignore file found",
|
|
579
579
|
));
|
|
580
|
-
} else
|
|
580
|
+
} else {
|
|
581
581
|
checks.push(checkResult(
|
|
582
582
|
".gitignore exists", "Phase 10", 3, 0, "fail",
|
|
583
|
-
"No .gitignore file found
|
|
583
|
+
"No .gitignore file found. Create one to prevent committing secrets, node_modules, build artifacts, and IDE files.",
|
|
584
584
|
[{ file: ".gitignore", message: "Missing .gitignore file" }],
|
|
585
585
|
));
|
|
586
|
-
} else {
|
|
587
|
-
checks.push(checkResult(
|
|
588
|
-
".gitignore exists", "Phase 10", 3, 3, "pass",
|
|
589
|
-
"No .gitignore file found, but no .env files exist either — no secrets at risk",
|
|
590
|
-
));
|
|
591
586
|
}
|
|
592
587
|
|
|
593
588
|
// Check 2: .gitignore covers .env files (4 pts)
|