Skip to content

Security Scan

Security Scan #143

Workflow file for this run

name: Security Scan
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * 0' # Run once a week at midnight on Sunday
# Set explicit permissions for the GITHUB_TOKEN to enhance security
permissions:
contents: read
jobs:
scan:
name: OSV Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Enable Corepack
run: corepack enable
- name: Setup Yarn
run: corepack prepare yarn@stable --activate
- name: Install dependencies
run: yarn install --immutable
# Run OSV Scanner on all packages in the monorepo
- name: Run OSV Scanner
uses: google/osv-scanner/actions/scanner@v1
with:
path: .
recursive: true
config: osv-scanner.toml