Skip to content

fix: Update frontend package.json with proper test configuration #6

fix: Update frontend package.json with proper test configuration

fix: Update frontend package.json with proper test configuration #6

Workflow file for this run

name: Security Scan
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * *' # Run daily
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --all-projects
- name: Container Scan
uses: azure/container-scan@v0
with:
image-name: todo-app-backend:latest
severity-threshold: CRITICAL
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'table'
severity: 'CRITICAL,HIGH'
output: 'trivy-results.txt'
- name: Upload Trivy scan results
uses: actions/upload-artifact@v3
with:
name: trivy-results
path: trivy-results.txt