Skip to content

ci: audit dependencies weekly; vite 6.4.5; drop a stale PyJWT exception - #15

Merged
Harshith029 merged 1 commit into
mainfrom
weekly-audit
Nov 7, 2026
Merged

Harshith029 merged 1 commit into
mainfrom
weekly-audit

Conversation

@Harshith029

Copy link
Copy Markdown
Owner

What and why

Twice in October an advisory was published while the repository sat idle, and nothing noticed until the next pull request failed on it (#13). CI only audits on pull requests and pushes.

  • .github/workflows/audit.yml runs the same audits every Monday (06:17 UTC) and on demand: pip-audit over versions.lock, and npm audit over the site. GitHub emails the owner when a scheduled run fails.
  • vite 6.4.4 → 6.4.5 in the site's override. GHSA-8g5g-mxqh-grgj (published 2026-10-29) covers exactly 6.4.4. It is a dev-server bypass (server.fs.deny with query strings): it affected npm run dev on a contributor's machine, not the published site, but the docs workflow's audit would have failed the next site change.
  • scripts/audit_pinned_deps.sh holds the pip-audit command, called by both CI and the weekly run, so they cannot drift apart.
  • Drops --ignore-vuln PYSEC-2026-4146. The advisory's OSV record now covers PyJWT 2.11.0 to 2.13.0 only (modified 2026-10-01); the lock pins 2.15.0. The exception had stopped applying and would only have hidden a future finding under that ID.

CONTRIBUTING and the changelog are updated.

Testing

  • The script passes on the current lock, and exits 1 with a vulnerable pin swapped in (certifi 2026.5.20, PYSEC-2026-4320), so a weekly run really does fail.
  • npm audit: 0 vulnerabilities on vite 6.4.5; the site builds.
  • Both workflows parse; the committed script has LF line endings.
  • The scheduled workflow can only be dispatched once it is on main; I will run it once by hand after merging.

Security invariants

  • No code under src/ changes. CI still fails a PR on any known vulnerability in the lock, now with no exceptions.

🤖 Generated with Claude Code

Twice in October an advisory was published while the repository sat
idle, and nothing noticed until the next pull request failed on it. CI
only audits on pull requests and pushes. .github/workflows/audit.yml
runs the same audits every Monday: pip-audit over versions.lock and npm
audit over the site. GitHub emails the owner when a scheduled run fails.

It found one already: GHSA-8g5g-mxqh-grgj (published 2026-10-29) covers
exactly the vite 6.4.4 the site pinned; vite 6.4.5 fixes it. It is a
dev-server bypass (server.fs.deny with query strings), so it affected
`npm run dev` on a contributor's machine, not the published site, but
the docs workflow's audit would have failed the next site change.

The pip-audit command moves into scripts/audit_pinned_deps.sh, which
both CI and the weekly run call, so they cannot drift apart. It drops
--ignore-vuln PYSEC-2026-4146: the advisory's record now covers PyJWT
2.11.0 to 2.13.0 only (modified 2026-10-01) and the lock pins 2.15.0,
so the exception had stopped applying and would only have hidden a
future finding under that ID.

Checked locally: the script passes on the current lock and exits 1
with a vulnerable certifi pin swapped in; npm audit reports 0 on vite
6.4.5 and the site builds; both workflows parse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Harshith029
Harshith029 merged commit 33e179e into main Nov 7, 2026
9 checks passed
@Harshith029
Harshith029 deleted the weekly-audit branch November 7, 2026 09:20
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.

1 participant