Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ updates:
# still flow; revisit when the whole stack moves to the next Node LTS.
- dependency-name: '@types/node'
update-types: ['version-update:semver-major']
# typescript 7.x is the Go-native compiler rewrite (tsgo), a breaking
# architectural change from the 5.x TS-in-TS compiler, not a routine
# semver bump. PR #495 (5.9.3 -> 7.0.2) failed build + typecheck + vitest
# CI outright. Revisit once the ecosystem (next.js, vitest, our own
# tsconfig usage) has validated support for TS7.
- dependency-name: 'typescript'
update-types: ['version-update:semver-major']

# GitHub Actions versions in workflow files
- package-ecosystem: 'github-actions'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc

Expand Down
33 changes: 29 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: '22'
cache: 'npm'
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: '22'
cache: 'npm'
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: '22'
cache: 'npm'
Expand All @@ -205,4 +205,29 @@ jobs:
run: npm ci --include=optional --no-audit --no-fund

- name: npm audit (--audit-level=high)
run: npm audit --audit-level=high
# npm's registry audit backend is currently broken for every npm CLI
# version we could test (2026-07-26): npm 10.x's legacy "quick audit"
# endpoint 400s with "Invalid package tree" (reproduces even against a
# pristine, untouched lockfile), and npm 11.x/12.x's newer bulk-advisory
# endpoint fails to gzip-decode its own response. Both are upstream
# infra failures, not real audit results -- npm's error handler always
# prints "audit endpoint returned an error" for these, distinct from a
# genuine "vulnerabilities found" failure. Treat only the latter as
# blocking so this gate doesn't wedge every PR on an upstream outage.
run: |
npm install -g npm@latest
set +e
npm audit --audit-level=high --json >audit-report.json 2>audit-stderr.log
exit_code=$?
set -e
if [ $exit_code -eq 0 ]; then
exit 0
fi
if grep -q 'audit endpoint returned an error' audit-stderr.log; then
echo "::warning::npm audit endpoint is erroring upstream (registry-side) -- treating as non-blocking, not a real result"
cat audit-stderr.log
exit 0
fi
cat audit-stderr.log
cat audit-report.json
exit $exit_code
4 changes: 2 additions & 2 deletions .github/workflows/desktop-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ jobs:
with:
ref: ${{ github.event.release.tag_name || inputs.tag }}

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: 22

# node-gyp's bundled gyp imports Python's `distutils`, removed in Python
# 3.12. The macOS/Windows runners default to 3.12+ (Ubuntu still ships
# 3.11), so pin 3.11 everywhere to keep native rebuilds working.
- uses: actions/setup-python@v6
- uses: actions/setup-python@v7
with:
python-version: '3.11'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
working-directory: middleware
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
Expand Down
Loading
Loading