test: autoplan lean secret fixture without a key header (CI credential scan)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-11-03 00:23:23 +00:00
1 parent 0848e9ee29
commit 96f96fffa4
1 file changed
+1 -1
+1 -1
View File
@@ -376,7 +376,7 @@ describe('draft capture edges', () => {
test('an untracked file named like a secret is left out of the draft and said so', () => {
const cwd = repo('secret', true);
fs.writeFileSync(path.join(cwd, 'lib', 'deploy.pem'), '-----BEGIN PRIVATE KEY-----\nnot-a-real-key\n');
fs.writeFileSync(path.join(cwd, 'lib', 'deploy.pem'), 'not-a-real-key\n');
fs.writeFileSync(path.join(cwd, 'credentials.json'), '{"token":"not-a-real-token"}\n');
const { ps, prompt } = lean('secret', cwd);
const diff = fs.readFileSync(path.join(ps.snapshot_dir, 'draft.diff'), 'utf8');