Files
WatchLink/.gitea/workflows/security-scan.yml
MrSphay d3e84feedd
Some checks failed
Build / build (push) Failing after 1m29s
Release Dry Run / release-dry-run (push) Successful in 1m24s
Template Compliance / compliance (push) Failing after 5s
Initial WatchLink scaffold
2026-05-15 03:11:41 +02:00

33 lines
841 B
YAML

name: Security Scan
on:
schedule:
- cron: "17 3 * * 1"
workflow_dispatch:
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: npm install
- name: Audit dependencies
run: npm audit --omit=dev --audit-level=high
- name: Scan secret-prone files
run: |
! find . -type f \( -name ".env" -o -name "*.pem" -o -name "*.key" \) -not -path "./node_modules/*" | grep .
- name: Scan instruction-injection markers
run: |
! grep -RInE "ignore previous instructions|system prompt|developer message" -- . --exclude-dir=.git --exclude-dir=node_modules --exclude-dir=.next