improvement(deps): harden dependency graph #1
Workflow file for this run
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: Dependency Governance | |
| on: | |
| pull_request: | |
| paths: | |
| - '**/package.json' | |
| - 'bun.lock' | |
| - 'bunfig.toml' | |
| - 'dependency-policy.json' | |
| - 'renovate.json' | |
| - 'scripts/check-dependency-advisories.ts' | |
| - 'scripts/check-dependency-governance.ts' | |
| - '.github/workflows/dependency-governance.yml' | |
| schedule: | |
| - cron: '23 13 * * 1' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| dependency-governance: | |
| name: Ownership, licenses, and advisories | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| with: | |
| bun-version: 1.3.14 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile --ignore-scripts --os='*' --cpu='*' | |
| - name: Check direct ownership, dependency growth, and licenses | |
| run: bun run check:dependency-governance | |
| - name: Reject unreviewed dependency advisories | |
| run: bun run check:dependency-security |