файл пакета→ .shtukbase/packages/std-owasp-secrets/checks/scr01_known.ts
checks/scr01_known.ts
6 строк, 408 Б.
Файл как есть в пакете: код и комментарии в нём не переводятся.
- // SCR-R01: no secret of a known format (private keys, cloud and service tokens) in the files of the repository.
- import { lines, PKG, scanFiles } from './secretlib.ts';
- import { finish, norm } from './lib/std.ts';
- const n = norm(PKG, 'SCR-R01', 'enforce');
- finish(n, n.active ? lines(scanFiles('known'), 'remove from the file, revoke and issue a new one, keep in the environment or a secrets store') : []);