build(deps): safe-subset updates + esbuild security fix (pin breaking… #21
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci --legacy-peer-deps | |
| - run: npm run lint | |
| - run: npm run typecheck | |
| - run: npm test | |
| - run: npm run build | |
| - run: npm audit --audit-level=high | |
| - name: Generate CycloneDX SBOM | |
| run: npx --yes @cyclonedx/cyclonedx-npm --output-format JSON --output-file sbom.cdx.json | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: sbom | |
| path: sbom.cdx.json | |
| security-scan: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'workflow_dispatch' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: OSV-Scanner | |
| uses: google/osv-scanner-action/osv-scanner-action@v2.3.8 | |
| with: | |
| scan-args: --lockfile=package-lock.json | |
| - name: Trivy filesystem scan | |
| uses: aquasecurity/trivy-action@v0.36.0 | |
| with: | |
| scan-type: fs | |
| scanners: vuln,secret,config |