Skip to content

MAINT: Harden frontend npm config (npm audit + min-release-age) - #2103

Merged
romanlutz merged 2 commits into
microsoft:mainfrom
romanlutz:romanlutz-frontend-npmrc-audit
Jun 30, 2026
Merged

MAINT: Harden frontend npm config (npm audit + min-release-age)#2103
romanlutz merged 2 commits into
microsoft:mainfrom
romanlutz:romanlutz-frontend-npmrc-audit

Conversation

@romanlutz

@romanlutz romanlutz commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Description

Config-only maintenance for the frontend's npm supply-chain posture, plus a small housekeeping ignore.

frontend/.npmrc — three settings appended; the existing registry pin on line 1 (CSSC CFS0001) is left untouched:

  • min-release-age=7: refuse package versions younger than 7 days, to dodge freshly-published malicious releases (supply-chain mitigation against attackers who publish a compromised version hoping it is pulled in before detection/yanking).
  • audit=true: run npm audit automatically on install so known vulnerabilities surface immediately.
  • audit-level=high: only high/critical advisories cause a non-zero (CI-failing) exit, keeping the signal actionable.

.gitignore — ignore the .impeccable/ directory, a local per-session cache created by tooling. It is not part of PyRIT and should never be committed.

Tests and Documentation

No code or tests changed — these are configuration-only changes. JupyText is not applicable (no docs or notebooks were touched).

Copilot AI added 2 commits June 30, 2026 06:04
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@romanlutz
romanlutz added this pull request to the merge queue Jun 30, 2026
Merged via the queue into microsoft:main with commit 726e933 Jun 30, 2026
47 checks passed
@romanlutz
romanlutz deleted the romanlutz-frontend-npmrc-audit branch June 30, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants