Skip to content
Closed
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
28 changes: 28 additions & 0 deletions .github/workflows/security-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: security-lint

on:
push:
branches: [main]
pull_request:

jobs:
# Runs the backend ESLint config, whose error tier is limited to rules that
# only fire on genuinely unsafe APIs (eval with an expression, new Buffer,
# pseudoRandomBytes, buffer noassert). Heuristic detectors are warnings and
# never fail this job — see backend/eslint.config.mjs.
backend-security-lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: backend/package-lock.json
- name: Install dependencies
run: npm ci
- name: ESLint (security rules)
run: npm run lint
Loading
Loading