mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
ci: require npm audit signature checks
Require npm registry signature verification wherever workflow npm audit checks run. - add npm audit signatures to CI Security Scan and maintenance security audit jobs - teach the workflow security validator to reject npm audit without signature verification - keep the repair and Copilot prompt tests portable across Windows path/case and CRLF frontmatter behavior Validation: - node tests/run-all.js (2376 passed, 0 failed) - CI current-head matrix green on #1846
This commit is contained in:
parent
766f4ee1d8
commit
797f283036
6 changed files with 44 additions and 3 deletions
|
|
@ -27,7 +27,8 @@ function read(relativePath) {
|
|||
}
|
||||
|
||||
function parseSimpleFrontmatter(source, relativePath) {
|
||||
const match = source.match(/^---\n([\s\S]*?)\n---\n/);
|
||||
const normalizedSource = source.replace(/^\uFEFF/, '').replace(/\r\n/g, '\n');
|
||||
const match = normalizedSource.match(/^---\n([\s\S]*?)\n---\n/);
|
||||
assert.ok(match, `${relativePath} must start with YAML frontmatter`);
|
||||
|
||||
const fields = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue