Skip to content
Merged
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
45 changes: 45 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Dependency vulnerability scan for frontend (npm) and backend (Go).
name: security

on:
pull_request:
schedule:
- cron: "0 6 * * 1" # weekly, catches newly disclosed CVEs

permissions:
contents: read

jobs:
backend:
name: Go (govulncheck)
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/api
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: services/api/go.mod
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Scan
run: govulncheck ./...

frontend:
name: npm (audit)
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: services/frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Scan
run: npm audit --audit-level=high # fails on high/critical
Loading