mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-03 15:27:56 +01:00
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:
1 parent
0848e9ee29
commit
96f96fffa4
1 file changed
+1
-1
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user