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
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'

- name: Install dependencies
Expand All @@ -43,6 +43,39 @@ jobs:
path: playwright-report/
retention-days: 30

security:
runs-on: ubuntu-latest
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Check Snyk token
id: snyk_token
run: |
if [ -n "$SNYK_TOKEN" ]; then
echo "present=true" >> "$GITHUB_OUTPUT"
else
echo "present=false" >> "$GITHUB_OUTPUT"
echo "::warning::SNYK_TOKEN not set - skipping Snyk scan. Add it to repo secrets to enable enforcement."
fi
- name: Snyk SCA test
if: steps.snyk_token.outputs.present == 'true'
uses: snyk/actions/node@master
with:
args: --severity-threshold=high
- name: Snyk container test (Dockerfile)
if: steps.snyk_token.outputs.present == 'true'
uses: snyk/actions/docker@master
with:
image: node:22-alpine
args: --file=Dockerfile --severity-threshold=high

# This job will be required for merging PRs
tests-required:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ yarn-error.log*
# vercel
.vercel

# snyk
snyk-report.json
container-report.json
.dccache

#claude
/.claude/

Expand Down
15 changes: 15 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Snyk (https://snyk.io) policy file
# Ignored vulnerabilities require a `reason` and an `expires` date so they
# resurface for re-evaluation. Do not add permanent suppressions.
version: v1.25.0
ignore:
SNYK-JS-LEAFLET-16427276:
- '*':
reason: >-
leaflet 1.9.4 XSS — no upstream patch available as of 2026-05-10.
Tracked at https://security.snyk.io/vuln/SNYK-JS-LEAFLET-16427276.
Re-evaluate at expiry: bump if patched, otherwise consider replacing
with maplibre-gl-js / openlayers.
expires: 2026-08-10
created: 2026-05-10
patch: {}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine AS base
FROM node:22-alpine AS base

# Install dependencies only when needed
FROM base AS deps
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:22-alpine

# Install dependencies for development including PostgreSQL client
RUN apk add --no-cache libc6-compat postgresql-client bash
Expand Down
Loading
Loading