Skip to content

fix: security hardening β€” 12 vulnerability fixes (v2.1.0) #28

fix: security hardening β€” 12 vulnerability fixes (v2.1.0)

fix: security hardening β€” 12 vulnerability fixes (v2.1.0) #28

Workflow file for this run

name: Security Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
schedule:
- cron: '0 6 * * 1' # Weekly Monday 6am UTC
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: npm audit
run: npm audit --audit-level=high
- name: Check for secrets
uses: trufflesecurity/trufflehog@main
with:
extra_args: --only-verified
test:
runs-on: ubuntu-latest
env:
WALLET_ADDRESS: '0x0000000000000000000000000000000000000000'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm install
- name: Unit tests
run: npx vitest run --exclude 'tests/e2e/**'