Security Scan #139
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |