Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
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
37 changes: 37 additions & 0 deletions .github/workflows/_security-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Security checks

on:
workflow_call:

jobs:
trivy:
name: Trivy scan
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Scan repo
uses: aquasecurity/trivy-action@0.29.0
with:
scan-type: 'fs'
scan-ref: '.'
scanners: 'vuln,secret,config'
exit-code: '1'
ignore-unfixed: 'true'
severity: 'MEDIUM,HIGH,CRITICAL'

npm-audit:
name: NPM audit
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Run npm audit
run: npm audit --omit=dev --audit-level=moderate
4 changes: 4 additions & 0 deletions .github/workflows/on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ permissions:
contents: read

jobs:
security:
name: Security checks
uses: ./.github/workflows/_security-checks.yaml

static-checks:
name: Static checks
uses: ./.github/workflows/_static-checks.yaml
Expand Down
Loading